Changeset dc747e3 in mainline for generic/src/proc
- Timestamp:
- 2005-12-15T10:27:59Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7dd2561
- Parents:
- 3fc03fd
- Location:
- generic/src/proc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/proc/task.c
r3fc03fd rdc747e3 37 37 #include <list.h> 38 38 39 spinlock_t tasks_lock;39 SPINLOCK_INITIALIZE(tasks_lock); 40 40 link_t tasks_head; 41 41 … … 49 49 { 50 50 TASK = NULL; 51 spinlock_initialize(&tasks_lock, "tasks_lock");52 51 list_initialize(&tasks_head); 53 52 } -
generic/src/proc/thread.c
r3fc03fd rdc747e3 55 55 char *thread_states[] = {"Invalid", "Running", "Sleeping", "Ready", "Entering", "Exiting"}; /**< Thread states */ 56 56 57 spinlock_t threads_lock; /**< Lock protecting threads_head list. For locking rules, see declaration thereof. */58 link_t threads_head; /**< List of all threads. */59 60 static spinlock_t tidlock;57 SPINLOCK_INITIALIZE(threads_lock); /**< Lock protecting threads_head list. For locking rules, see declaration thereof. */ 58 link_t threads_head; /**< List of all threads. */ 59 60 SPINLOCK_INITIALIZE(tidlock); 61 61 __u32 last_tid = 0; 62 62 … … 97 97 THREAD = NULL; 98 98 nrdy = 0; 99 spinlock_initialize(&threads_lock, "threads_lock");100 99 list_initialize(&threads_head); 101 100 }
Note:
See TracChangeset
for help on using the changeset viewer.
