Changes in kernel/generic/src/proc/task.c [ac9e79d:abf6c01] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/task.c
rac9e79d rabf6c01 64 64 IRQ_SPINLOCK_INITIALIZE(tasks_lock); 65 65 66 /** Ordered dictionary of active tasks. 66 /** Ordered dictionary of active tasks by task ID. 67 * 68 * Members are task_t structures. 67 69 * 68 70 * The task is guaranteed to exist after it was found in the @c tasks … … 197 199 task_t *task_create(as_t *as, const char *name) 198 200 { 199 task_t *task = (task_t *) slab_alloc(task_cache, 0);200 if ( task == NULL) {201 task_t *task = (task_t *) slab_alloc(task_cache, FRAME_ATOMIC); 202 if (!task) 201 203 return NULL; 202 }203 204 204 205 task_create_arch(task); … … 281 282 */ 282 283 task_destroy_arch(task); 283 284 /*285 * Free up dynamically allocated state.286 */287 futex_task_deinit(task);288 284 289 285 /* … … 631 627 { 632 628 task_kill_self(notify); 633 634 /* Unreachable */ 635 return EOK; 629 unreachable(); 636 630 } 637 631
Note:
See TracChangeset
for help on using the changeset viewer.