Changeset 32fffef0 in mainline for kernel/generic/include/proc/thread.h
- Timestamp:
- 2006-08-29T11:06:57Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0fa6044
- Parents:
- c8ea4a8b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/proc/thread.h
rc8ea4a8b r32fffef0 53 53 #define THREAD_STACK_SIZE STACK_SIZE 54 54 55 /** <Thread states. */55 /** Thread states. */ 56 56 enum state { 57 57 Invalid, /**< It is an error, if thread is found in this state. */ … … 66 66 extern char *thread_states[]; 67 67 68 /** <Join types. */68 /** Join types. */ 69 69 typedef enum { 70 70 None, … … 73 73 } thread_join_type_t; 74 74 75 #define X_WIRED (1<<0) 76 #define X_STOLEN (1<<1) 75 /* Thread flags */ 76 #define THREAD_FLAG_WIRED (1<<0) /**< Thread cannot be migrated to another CPU. */ 77 #define THREAD_FLAG_STOLEN (1<<1) /**< Thread was migrated to another CPU and has not run yet. */ 78 #define THREAD_FLAG_USPACE (1<<2) /**< Thread executes in userspace. */ 77 79 78 80 #define THREAD_NAME_BUFLEN 20 … … 128 130 * Defined only if thread doesn't run. 129 131 * It means that fpu context is in CPU that last time executes this thread. 130 * This disables migration 132 * This disables migration. 131 133 */ 132 134 int fpu_context_engaged; … … 150 152 thread_arch_t arch; /**< Architecture-specific data. */ 151 153 152 uint8_t *kstack; 154 uint8_t *kstack; /**< Thread's kernel stack. */ 153 155 }; 154 156 … … 171 173 extern void thread_create_arch(thread_t *t); 172 174 #endif 175 #ifndef thr_constructor_arch 176 extern void thr_constructor_arch(thread_t *t); 177 #endif 178 #ifndef thr_destructor_arch 179 extern void thr_destructor_arch(thread_t *t); 180 #endif 173 181 174 182 extern void thread_sleep(uint32_t sec);
Note:
See TracChangeset
for help on using the changeset viewer.