Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 623 → Rev 624

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