Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 622 → Rev 623

/kernel/trunk/generic/include/proc/scheduler.h
40,7 → 40,7
 
/** Scheduler run queue structure. */
struct runq {
spinlock_t lock;
SPINLOCK_DECLARE(lock);
link_t rq_head; /**< List of ready threads. */
count_t n; /**< Number of threads in rq_ready. */
};
/kernel/trunk/generic/include/proc/task.h
34,7 → 34,7
#include <list.h>
 
struct task {
spinlock_t lock;
SPINLOCK_DECLARE(lock);
link_t th_head; /**< List of threads contained in this task. */
link_t tasks_link; /**< Link to other tasks within the system. */
vm_t *vm;
/kernel/trunk/generic/include/proc/thread.h
70,7 → 70,7
* Must be acquired before T.lock for each T of type task_t.
*
*/
spinlock_t lock;
SPINLOCK_DECLARE(lock);
 
void (* thread_code)(void *); /**< Function implementing the thread. */
void *thread_arg; /**< Argument passed to thread_code() function. */