64,12 → 64,7 |
link_t th_link; /**< Links to threads within containing task. */ |
link_t threads_link; /**< Link to the list of all threads. */ |
|
/** Lock protecting thread structure. |
* |
* Protects the whole thread structure except list links above. |
* Must be acquired before T.lock for each T of type task_t. |
* |
*/ |
/* items below are protected by lock */ |
spinlock_t lock; |
|
void (* thread_code)(void *); /**< Function implementing the thread. */ |
114,14 → 109,7 |
__u8 *ustack; /**< Thread's user stack. */ |
}; |
|
/** Thread list lock. |
* |
* This lock protects all link_t structures chained in threads_head. |
* Must be acquired before T.lock for each T of type thread_t. |
* |
*/ |
extern spinlock_t threads_lock; |
|
extern spinlock_t threads_lock; /**< Lock protecting threads_head list. */ |
extern link_t threads_head; /**< List of all threads in the system. */ |
|
extern void thread_init(void); |