Changes in kernel/generic/include/proc/thread.h [ee42e43:df58e44] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/proc/thread.h
ree42e43 rdf58e44 91 91 92 92 /** Function implementing the thread. */ 93 void (* 93 void (*thread_code)(void *); 94 94 /** Argument passed to thread_code() function. */ 95 95 void *thread_arg; 96 96 97 97 /** 98 * From here, the stored context is restored when the thread is99 * scheduled.98 * From here, the stored context is restored 99 * when the thread is scheduled. 100 100 */ 101 101 context_t saved_context; 102 /** 103 * From here, the stored timeout context is restored when sleep times 104 * out. 102 103 /** 104 * From here, the stored timeout context 105 * is restored when sleep times out. 105 106 */ 106 107 context_t sleep_timeout_context; 107 /** 108 * From here, the stored interruption context is restored when sleep is 109 * interrupted. 108 109 /** 110 * From here, the stored interruption context 111 * is restored when sleep is interrupted. 110 112 */ 111 113 context_t sleep_interruption_context; … … 125 127 */ 126 128 bool in_copy_from_uspace; 129 127 130 /** 128 131 * True if this thread is executing copy_to_uspace(). … … 136 139 */ 137 140 bool interrupted; 141 142 /** 143 * If true, the scheduler will print a stack trace 144 * to the kernel console upon scheduling this thread. 145 */ 146 bool btrace; 138 147 139 148 /** If true, thread_join_timeout() cannot be used on this thread. */ … … 236 245 extern void thread_update_accounting(bool); 237 246 extern bool thread_exists(thread_t *); 247 extern void thread_stack_trace(thread_id_t); 238 248 239 249 /** Fpu context slab cache. */ … … 241 251 242 252 /* Thread syscall prototypes. */ 243 extern unative_t sys_thread_create(uspace_arg_t *, char *, size_t,253 extern sysarg_t sys_thread_create(uspace_arg_t *, char *, size_t, 244 254 thread_id_t *); 245 extern unative_t sys_thread_exit(int);246 extern unative_t sys_thread_get_id(thread_id_t *);247 extern unative_t sys_thread_usleep(uint32_t);255 extern sysarg_t sys_thread_exit(int); 256 extern sysarg_t sys_thread_get_id(thread_id_t *); 257 extern sysarg_t sys_thread_usleep(uint32_t); 248 258 249 259 #endif
Note:
See TracChangeset
for help on using the changeset viewer.