Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 557 → Rev 623

/kernel/trunk/generic/src/proc/task.c
36,7 → 36,7
#include <panic.h>
#include <list.h>
 
spinlock_t tasks_lock;
SPINLOCK_INITIALIZE(tasks_lock);
link_t tasks_head;
 
 
48,7 → 48,6
void task_init(void)
{
TASK = NULL;
spinlock_initialize(&tasks_lock, "tasks_lock");
list_initialize(&tasks_head);
}
 
/kernel/trunk/generic/src/proc/thread.c
54,10 → 54,10
 
char *thread_states[] = {"Invalid", "Running", "Sleeping", "Ready", "Entering", "Exiting"}; /**< Thread states */
 
spinlock_t threads_lock; /**< Lock protecting threads_head list. For locking rules, see declaration thereof. */
link_t threads_head; /**< List of all threads. */
SPINLOCK_INITIALIZE(threads_lock); /**< Lock protecting threads_head list. For locking rules, see declaration thereof. */
link_t threads_head; /**< List of all threads. */
 
static spinlock_t tidlock;
SPINLOCK_INITIALIZE(tidlock);
__u32 last_tid = 0;
 
 
96,7 → 96,6
{
THREAD = NULL;
nrdy = 0;
spinlock_initialize(&threads_lock, "threads_lock");
list_initialize(&threads_head);
}