Rev 2927 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2927 | Rev 4691 | ||
---|---|---|---|
Line 45... | Line 45... | ||
45 | 45 | ||
46 | /** Scheduler run queue structure. */ |
46 | /** Scheduler run queue structure. */ |
47 | typedef struct { |
47 | typedef struct { |
48 | SPINLOCK_DECLARE(lock); |
48 | SPINLOCK_DECLARE(lock); |
49 | link_t rq_head; /**< List of ready threads. */ |
49 | link_t rq_head; /**< List of ready threads. */ |
50 | count_t n; /**< Number of threads in rq_ready. */ |
50 | size_t n; /**< Number of threads in rq_ready. */ |
51 | } runq_t; |
51 | } runq_t; |
52 | 52 | ||
53 | extern atomic_t nrdy; |
53 | extern atomic_t nrdy; |
54 | extern void scheduler_init(void); |
54 | extern void scheduler_init(void); |
55 | 55 |