Changeset 103de761 in mainline
- Timestamp:
- 2009-11-28T11:03:58Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e701eb1
- Parents:
- fb7c52f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/task.c
rfb7c52f r103de761 75 75 static task_id_t task_counter = 0; 76 76 77 static slab_cache_t *task_slab; 78 77 79 /* Forward declarations. */ 78 80 static void task_kill_internal(task_t *); … … 83 85 TASK = NULL; 84 86 avltree_create(&tasks_tree); 87 task_slab = slab_cache_create("task_slab", sizeof(task_t), 0, NULL, 88 NULL, 0); 85 89 } 86 90 … … 142 146 int i; 143 147 144 ta = (task_t *) malloc(sizeof(task_t), 0);148 ta = (task_t *) slab_alloc(task_slab, 0); 145 149 146 150 task_create_arch(ta); … … 230 234 as_destroy(t->as); 231 235 232 free(t);236 slab_free(task_slab, t); 233 237 TASK = NULL; 234 238 }
Note:
See TracChangeset
for help on using the changeset viewer.