Added thread group identification to c0 and libl4

tgid will be used when threads will be created in same address space.
This commit is contained in:
Bahadir Balban
2008-09-09 15:39:56 +03:00
parent 89d774f7fa
commit 002fe79a54
6 changed files with 17 additions and 0 deletions

View File

@@ -331,8 +331,10 @@ void init_tasks()
/* Initialise thread and space id pools */
thread_id_pool = id_pool_new_init(THREAD_IDS_MAX);
space_id_pool = id_pool_new_init(SPACE_IDS_MAX);
tgroup_id_pool = id_pool_new_init(TGROUP_IDS_MAX);
ids.tid = id_new(thread_id_pool);
ids.spid = id_new(space_id_pool);
ids.tgid = id_new(tgroup_id_pool);
/* Initialise the global task list head */
INIT_LIST_HEAD(&global_task_list);