Commit Graph

17 Commits

Author SHA1 Message Date
Matheus 81c7d77ad0 semaphore: fix bug when used on stack 2025-08-31 13:07:15 -03:00
Matheus 938612e82e spinlock: rename functions 2025-08-15 22:54:28 -03:00
Matheus 1fd2f6bc50 semaphore: semaphore_signal_limit 2024-09-22 11:39:40 -03:00
Matheus 0bff52b41e sched: finish preparing scheduler for rewrite 2024-09-21 23:06:37 -03:00
Matheus 5e8e54e553 semaphore: fix bug 2024-09-16 22:55:02 -03:00
Matheus e058d62261 cpu: change _cpu()->thread calls to current_thread() to fix smp race 2024-09-15 17:47:26 -03:00
Matheus c086b9625a scheduler: fix issue with threads being lost 2024-09-09 21:24:02 -03:00
8infy f306edb5ec semaphore: introduce a semaphore_reset helper
This simply clears the internal counter of a semaphore.
2024-09-01 23:12:44 +03:00
8infy 7e3922c7ad semaphore: add a new semaphore_timedwait helper
This is the same as semaphore_wait except it allows for the acquire
attempt to time out after a given period of time.
2024-09-01 19:39:25 +03:00
Matheus dd1719096a semaphore: fix a race condition 2024-05-26 20:51:25 -03:00
Matheus bf841406d5 semaphore: signal safety 2024-05-08 20:13:12 -03:00
Matheus abb39478df semaphore: don't sleep if theres no thread running on the cpu yet 2023-12-31 15:47:35 -03:00
Matheus 49eef0e04c vfs: use mutexes for locking 2023-07-26 20:29:40 -03:00
Matheus 02b3d5696b semaphore: haswaiters and redo how threads are attached 2023-07-03 22:40:44 -03:00
Matheus 8e59a38e4c scheduler: thread sleep queue pointers 2023-05-15 22:38:03 -03:00
Matheus 26e9f370b5 semaphore: disable interrupts while lock is held 2023-05-04 22:45:49 -03:00
Matheus c1c84cffbb kernel: semaphores 2023-05-03 21:07:43 -03:00