Changes in kernel/generic/include/proc/thread.h [a000878c:e1b6742] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/proc/thread.h
ra000878c re1b6742 48 48 #include <proc/uarg.h> 49 49 #include <udebug/udebug.h> 50 #include <sysinfo/abi.h> 50 51 51 52 #define THREAD_STACK_SIZE STACK_SIZE … … 69 70 #define THREAD_FLAG_NOATTACH (1 << 3) 70 71 71 /** Thread states. */72 typedef enum {73 /** It is an error, if thread is found in this state. */74 Invalid,75 /** State of a thread that is currently executing on some CPU. */76 Running,77 /** Thread in this state is waiting for an event. */78 Sleeping,79 /** State of threads in a run queue. */80 Ready,81 /** Threads are in this state before they are first readied. */82 Entering,83 /** After a thread calls thread_exit(), it is put into Exiting state. */84 Exiting,85 /** Threads that were not detached but exited are Lingering. */86 Lingering87 } state_t;88 89 72 /** Thread structure. There is one per thread. */ 90 73 typedef struct thread { … … 189 172 190 173 /** Thread accounting. */ 191 uint64_t cycles; 174 uint64_t ucycles; 175 uint64_t kcycles; 192 176 /** Last sampled cycle. */ 193 177 uint64_t last_cycle; … … 252 236 extern void thread_print_list(void); 253 237 extern void thread_destroy(thread_t *); 254 extern void thread_update_accounting(void); 238 extern thread_t *thread_find_by_id(thread_id_t); 239 extern void thread_update_accounting(bool); 255 240 extern bool thread_exists(thread_t *); 256 241
Note:
See TracChangeset
for help on using the changeset viewer.