Changeset 88dea9d in mainline for kernel/generic/include/proc/thread.h
- Timestamp:
- 2010-04-17T16:28:49Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 30a5470
- Parents:
- 5ba201d (diff), 95319bd (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/proc/thread.h
r5ba201d r88dea9d 69 69 #define THREAD_FLAG_NOATTACH (1 << 3) 70 70 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 Lingering 87 } state_t; 71 /* We need state_t enum definition */ 72 #include <ps/taskinfo.h> 88 73 89 74 /** Thread structure. There is one per thread. */ … … 189 174 190 175 /** Thread accounting. */ 191 uint64_t cycles; 176 uint64_t ucycles; 177 uint64_t kcycles; 192 178 /** Last sampled cycle. */ 193 179 uint64_t last_cycle; … … 252 238 extern void thread_print_list(void); 253 239 extern void thread_destroy(thread_t *); 254 extern void thread_update_accounting( void);240 extern void thread_update_accounting(bool); 255 241 extern bool thread_exists(thread_t *); 256 242
Note:
See TracChangeset
for help on using the changeset viewer.