mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 20:58:22 +00:00
semaphore: haswaiters and redo how threads are attached
This commit is contained in:
@@ -21,9 +21,11 @@ typedef struct semaphore_t{
|
||||
(x)->head = NULL; \
|
||||
}
|
||||
|
||||
|
||||
int semaphore_wait(semaphore_t *sem, bool interruptible);
|
||||
void semaphore_signal(semaphore_t *sem);
|
||||
bool semaphore_test(semaphore_t *sem);
|
||||
bool semaphore_haswaiters(semaphore_t *sem);
|
||||
|
||||
#include <kernel/scheduler.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user