Moved the wait type definitions to <thread_defs.h>. We're going to use
them in userland, too. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27301 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
dd1c278d4b
commit
232fd3bae3
@ -49,20 +49,6 @@ typedef enum job_control_state {
|
|||||||
JOB_CONTROL_STATE_DEAD
|
JOB_CONTROL_STATE_DEAD
|
||||||
} job_control_state;
|
} job_control_state;
|
||||||
|
|
||||||
// The type of object a thread blocks on (thread::wait::type, set by
|
|
||||||
// thread_prepare_to_block()).
|
|
||||||
enum {
|
|
||||||
THREAD_BLOCK_TYPE_SEMAPHORE = 0,
|
|
||||||
THREAD_BLOCK_TYPE_CONDITION_VARIABLE = 1,
|
|
||||||
THREAD_BLOCK_TYPE_SNOOZE = 2,
|
|
||||||
THREAD_BLOCK_TYPE_SIGNAL = 3,
|
|
||||||
THREAD_BLOCK_TYPE_MUTEX = 4,
|
|
||||||
THREAD_BLOCK_TYPE_RW_LOCK = 5,
|
|
||||||
|
|
||||||
THREAD_BLOCK_TYPE_OTHER = 9999,
|
|
||||||
THREAD_BLOCK_TYPE_USER_BASE = 10000
|
|
||||||
};
|
|
||||||
|
|
||||||
struct image; // defined in image.c
|
struct image; // defined in image.c
|
||||||
struct realtime_sem_context; // defined in realtime_sem.cpp
|
struct realtime_sem_context; // defined in realtime_sem.cpp
|
||||||
struct select_info;
|
struct select_info;
|
||||||
|
@ -24,6 +24,21 @@
|
|||||||
- USER_STACK_GUARD_PAGES * B_PAGE_SIZE) // 16 MB
|
- USER_STACK_GUARD_PAGES * B_PAGE_SIZE) // 16 MB
|
||||||
|
|
||||||
|
|
||||||
|
// The type of object a thread blocks on (thread::wait::type, set by
|
||||||
|
// thread_prepare_to_block()).
|
||||||
|
enum {
|
||||||
|
THREAD_BLOCK_TYPE_SEMAPHORE = 0,
|
||||||
|
THREAD_BLOCK_TYPE_CONDITION_VARIABLE = 1,
|
||||||
|
THREAD_BLOCK_TYPE_SNOOZE = 2,
|
||||||
|
THREAD_BLOCK_TYPE_SIGNAL = 3,
|
||||||
|
THREAD_BLOCK_TYPE_MUTEX = 4,
|
||||||
|
THREAD_BLOCK_TYPE_RW_LOCK = 5,
|
||||||
|
|
||||||
|
THREAD_BLOCK_TYPE_OTHER = 9999,
|
||||||
|
THREAD_BLOCK_TYPE_USER_BASE = 10000
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
struct thread_creation_attributes {
|
struct thread_creation_attributes {
|
||||||
int32 (*entry)(thread_func, void *);
|
int32 (*entry)(thread_func, void *);
|
||||||
const char* name;
|
const char* name;
|
||||||
|
Loading…
Reference in New Issue
Block a user