MyOS Libc
tasking.h
Go to the documentation of this file.
1
5
#ifndef TASKING_H
6
#define TASKING_H
7
8
#include <stdint.h>
9
#include <sys/types.h>
10
11
#ifndef KERN_TASKING_H
12
15
typedef
enum
thread_state
{
16
THREAD_RUNNING
,
17
THREAD_READY
,
18
THREAD_EXITED
,
19
THREAD_BLOCKED
20
}
thread_state
;
21
22
#endif
23
27
void
yield
();
28
36
void
create_proc
(
void
* start,
void
* address_space,
void
* param1,
void
* param2);
41
void
block_thread
(
thread_state
state);
47
void
unblock_thread
(pid_t pid,pid_t tid);
48
49
50
#endif
yield
void yield()
Definition:
tasking.c:8
block_thread
void block_thread(thread_state state)
Definition:
tasking.c:32
unblock_thread
void unblock_thread(pid_t pid, pid_t tid)
Definition:
tasking.c:39
create_proc
void create_proc(void *start, void *address_space, void *param1, void *param2)
Definition:
tasking.c:15
thread_state
thread_state
Definition:
tasking.h:15
THREAD_BLOCKED
@ THREAD_BLOCKED
The state of a generically blocked thread.
Definition:
tasking.h:19
THREAD_RUNNING
@ THREAD_RUNNING
The state of a running thread.
Definition:
tasking.h:16
THREAD_EXITED
@ THREAD_EXITED
The state of an exited thread.
Definition:
tasking.h:18
THREAD_READY
@ THREAD_READY
The state of a ready to run thread.
Definition:
tasking.h:17
libc
tasking.h
Generated by
1.8.18