Changeset 9f52563 in mainline for generic/include/proc/thread.h
- Timestamp:
- 2006-03-17T01:34:36Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8a0b0669
- Parents:
- 5fceec7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/include/proc/thread.h
r5fceec7 r9f52563 44 44 #define THREAD_STACK_SIZE STACK_SIZE 45 45 46 #define THREAD_USER_STACK 147 48 46 enum state { 49 47 Invalid, /**< It is an error, if thread is found in this state. */ … … 60 58 #define X_STOLEN (1<<1) 61 59 60 #define THREAD_NAME_BUFLEN 20 61 62 62 /** Thread structure. There is one per thread. */ 63 63 struct thread { 64 char *name;65 66 64 link_t rq_link; /**< Run queue link. */ 67 65 link_t wq_link; /**< Wait queue link. */ … … 76 74 */ 77 75 SPINLOCK_DECLARE(lock); 76 77 char name[THREAD_NAME_BUFLEN]; 78 78 79 79 void (* thread_code)(void *); /**< Function implementing the thread. */ … … 118 118 }; 119 119 120 /** Structure passed to uinit kernel thread as argument. */ 121 typedef struct uspace_arg { 122 __address uspace_entry; 123 __address uspace_stack; 124 } uspace_arg_t; 125 120 126 /** Thread list lock. 121 127 * … … 140 146 extern void thread_destroy(thread_t *t); 141 147 142 143 148 /* Fpu context slab cache */ 144 149 extern slab_cache_t *fpu_context_slab; 145 150 151 /** Thread syscall prototypes. */ 152 __native sys_thread_create(__address function, void *arg, void *stack, char *name); 153 __native sys_thread_exit(int status); 154 146 155 #endif
Note:
See TracChangeset
for help on using the changeset viewer.