Changeset 286e03d in mainline for generic/src/proc/task.c
- Timestamp:
- 2006-03-15T11:44:26Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8965838e
- Parents:
- 91d5ad6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/proc/task.c
r91d5ad6 r286e03d 45 45 SPINLOCK_INITIALIZE(tasks_lock); 46 46 LIST_INITIALIZE(tasks_head); 47 static task_id_t task_counter = 0; 47 48 48 49 /** Initialize tasks … … 86 87 ipl = interrupts_disable(); 87 88 spinlock_lock(&tasks_lock); 89 90 ta->taskid = ++task_counter; 88 91 list_append(&ta->tasks_link, &tasks_head); 92 89 93 spinlock_unlock(&tasks_lock); 90 94 interrupts_restore(ipl);
Note:
See TracChangeset
for help on using the changeset viewer.