Changeset dc747e3 in mainline for generic/src/proc/thread.c
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.