Subversion Repositories HelenOS

Rev

Rev 2089 | Rev 2096 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2089 Rev 2093
Line 58... Line 58...
58
 *
58
 *
59
 * This lock protects all link_t structures chained in threads_head.
59
 * This lock protects all link_t structures chained in threads_head.
60
 * Must be acquired before T.lock for each T of type thread_t.
60
 * Must be acquired before T.lock for each T of type thread_t.
61
 *
61
 *
62
 */
62
 */
63
extern spinlock_t threads_lock;
63
SPINLOCK_EXTERN(threads_lock);
64
 
64
 
65
extern btree_t threads_btree;           /**< B+tree containing all threads. */
65
extern btree_t threads_btree;           /**< B+tree containing all threads. */
66
 
66
 
67
extern void thread_init(void);
67
extern void thread_init(void);
68
extern thread_t *thread_create(void (* func)(void *), void *arg, task_t *task, int flags, char *name, bool uncounted);
68
extern thread_t *thread_create(void (* func)(void *), void *arg, task_t *task, int flags, char *name, bool uncounted);