Rev 1820 | Rev 1864 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1820 | Rev 1839 | ||
---|---|---|---|
Line 113... | Line 113... | ||
113 | list_initialize(&ta->th_head); |
113 | list_initialize(&ta->th_head); |
114 | ta->as = as; |
114 | ta->as = as; |
115 | ta->name = name; |
115 | ta->name = name; |
116 | ta->main_thread = NULL; |
116 | ta->main_thread = NULL; |
117 | ta->refcount = 0; |
117 | ta->refcount = 0; |
118 | ta->context = THE->context; |
118 | ta->context = CONTEXT; |
119 | 119 | ||
120 | ta->capabilities = 0; |
120 | ta->capabilities = 0; |
121 | ta->accept_new_threads = true; |
121 | ta->accept_new_threads = true; |
122 | 122 | ||
123 | ipc_answerbox_init(&ta->answerbox); |
123 | ipc_answerbox_init(&ta->answerbox); |
124 | for (i=0; i < IPC_MAX_PHONES;i++) |
124 | for (i = 0; i < IPC_MAX_PHONES; i++) |
125 | ipc_phone_init(&ta->phones[i]); |
125 | ipc_phone_init(&ta->phones[i]); |
126 | if (ipc_phone_0) |
126 | if ((ipc_phone_0) && (context_check(ipc_phone_0->task->context, ta->context))) |
127 | ipc_phone_connect(&ta->phones[0], ipc_phone_0); |
127 | ipc_phone_connect(&ta->phones[0], ipc_phone_0); |
128 | atomic_set(&ta->active_calls, 0); |
128 | atomic_set(&ta->active_calls, 0); |
129 | 129 | ||
130 | mutex_initialize(&ta->futexes_lock); |
130 | mutex_initialize(&ta->futexes_lock); |
131 | btree_create(&ta->futexes); |
131 | btree_create(&ta->futexes); |