Changeset 7f1c620 in mainline for generic/include/proc/thread.h
- Timestamp:
- 2006-07-04T17:17:56Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0ffa3ef5
- Parents:
- 991779c5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/include/proc/thread.h
r991779c5 r7f1c620 143 143 task_t *task; /**< Containing task. */ 144 144 145 __u64ticks; /**< Ticks before preemption. */145 uint64_t ticks; /**< Ticks before preemption. */ 146 146 147 147 int priority; /**< Thread's priority. Implemented as index to CPU->rq */ 148 __u32tid; /**< Thread ID. */148 uint32_t tid; /**< Thread ID. */ 149 149 150 150 thread_arch_t arch; /**< Architecture-specific data. */ 151 151 152 __u8*kstack; /**< Thread's kernel stack. */152 uint8_t *kstack; /**< Thread's kernel stack. */ 153 153 }; 154 154 … … 172 172 #endif 173 173 174 extern void thread_sleep( __u32sec);175 extern void thread_usleep( __u32usec);174 extern void thread_sleep(uint32_t sec); 175 extern void thread_usleep(uint32_t usec); 176 176 177 177 #define thread_join(t) thread_join_timeout((t), SYNCH_NO_TIMEOUT, SYNCH_FLAGS_NONE) 178 extern int thread_join_timeout(thread_t *t, __u32usec, int flags);178 extern int thread_join_timeout(thread_t *t, uint32_t usec, int flags); 179 179 extern void thread_detach(thread_t *t); 180 180 … … 188 188 189 189 /** Thread syscall prototypes. */ 190 __nativesys_thread_create(uspace_arg_t *uspace_uarg, char *uspace_name);191 __nativesys_thread_exit(int uspace_status);190 unative_t sys_thread_create(uspace_arg_t *uspace_uarg, char *uspace_name); 191 unative_t sys_thread_exit(int uspace_status); 192 192 193 193 #endif
Note:
See TracChangeset
for help on using the changeset viewer.