Changeset 669f3d32 in mainline for kernel/generic/src/proc/task.c
- Timestamp:
- 2012-11-20T18:26:14Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c28413a9
- Parents:
- 04d66804
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/task.c
r04d66804 r669f3d32 41 41 #include <mm/slab.h> 42 42 #include <atomic.h> 43 #include <synch/futex.h> 43 44 #include <synch/spinlock.h> 44 45 #include <synch/waitq.h> … … 153 154 154 155 irq_spinlock_initialize(&task->lock, "task_t_lock"); 155 mutex_initialize(&task->futexes_lock, MUTEX_PASSIVE);156 156 157 157 list_initialize(&task->threads); … … 165 165 spinlock_initialize(&task->active_calls_lock, "active_calls_lock"); 166 166 list_initialize(&task->active_calls); 167 168 mutex_initialize(&task->futex_list_lock, MUTEX_PASSIVE); 169 list_initialize(&task->futex_list); 167 170 168 171 #ifdef CONFIG_UDEBUG … … 221 224 (void) ipc_phone_connect(&task->phones[0], ipc_phone_0); 222 225 223 btree_create(&task->futexes);226 futex_task_init(task); 224 227 225 228 /* … … 262 265 * Free up dynamically allocated state. 263 266 */ 264 btree_destroy(&task->futexes);267 futex_task_deinit(task); 265 268 266 269 /*
Note:
See TracChangeset
for help on using the changeset viewer.