Rev 552 | Rev 623 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 552 | Rev 557 | ||
|---|---|---|---|
| Line 52... | Line 52... | ||
| 52 | #include <arch/atomic.h> |
52 | #include <arch/atomic.h> |
| 53 | #include <memstr.h> |
53 | #include <memstr.h> |
| 54 | 54 | ||
| 55 | char *thread_states[] = {"Invalid", "Running", "Sleeping", "Ready", "Entering", "Exiting"}; /**< Thread states */ |
55 | char *thread_states[] = {"Invalid", "Running", "Sleeping", "Ready", "Entering", "Exiting"}; /**< Thread states */ |
| 56 | 56 | ||
| 57 | spinlock_t threads_lock; |
57 | spinlock_t threads_lock; /**< Lock protecting threads_head list. For locking rules, see declaration thereof. */ |
| 58 | link_t threads_head; |
58 | link_t threads_head; /**< List of all threads. */ |
| 59 | 59 | ||
| 60 | static spinlock_t tidlock; |
60 | static spinlock_t tidlock; |
| 61 | __u32 last_tid = 0; |
61 | __u32 last_tid = 0; |
| 62 | 62 | ||
| 63 | 63 | ||