proc.h: add semaphore for process
This commit is contained in:
parent
d3df99c9db
commit
3e6592b0f3
1 changed files with 5 additions and 0 deletions
|
|
@ -4,9 +4,12 @@
|
|||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include <kernel/lock.h>
|
||||
#include <kernel/rbtree.h>
|
||||
|
||||
#include <lib/sem.h>
|
||||
|
||||
#define PROC_RUNNING 0
|
||||
#define PROC_STOPPED 1
|
||||
#define PROC_BLOCKED 2
|
||||
|
|
@ -69,6 +72,8 @@ struct proc {
|
|||
void *arg4;
|
||||
} unblock_args;
|
||||
ssize_t block_retval;
|
||||
|
||||
sem_t block_sem;
|
||||
};
|
||||
|
||||
struct procregs *proc_current_regs();
|
||||
|
|
|
|||
Loading…
Reference in a new issue