Changeset 831a04d0 in mainline for kernel/generic/include/proc/thread.h
- Timestamp:
- 2007-01-29T20:01:12Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b612ded6
- Parents:
- 1004b37
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/proc/thread.h
r1004b37 r831a04d0 38 38 #include <synch/waitq.h> 39 39 #include <proc/task.h> 40 #include <time/timeout.h> 40 41 #include <cpu.h> 41 42 #include <synch/rwlock.h> … … 56 57 #define THREAD_FLAG_USPACE (1 << 2) /**< Thread executes in userspace. */ 57 58 59 /** Thread states. */ 60 typedef enum { 61 Invalid, /**< It is an error, if thread is found in this state. */ 62 Running, /**< State of a thread that is currently executing on some CPU. */ 63 Sleeping, /**< Thread in this state is waiting for an event. */ 64 Ready, /**< State of threads in a run queue. */ 65 Entering, /**< Threads are in this state before they are first readied. */ 66 Exiting, /**< After a thread calls thread_exit(), it is put into Exiting state. */ 67 Undead /**< Threads that were not detached but exited are in the Undead state. */ 68 } state_t; 69 70 /** Join types. */ 71 typedef enum { 72 None, 73 TaskClnp, /**< The thread will be joined by ktaskclnp thread. */ 74 TaskGC /**< The thread will be joined by ktaskgc thread. */ 75 } thread_join_type_t; 76 58 77 /** Thread structure. There is one per thread. */ 59 78 typedef struct thread {
Note:
See TracChangeset
for help on using the changeset viewer.