Rev 3674 | Rev 4344 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3674 | Rev 4343 | ||
---|---|---|---|
Line 337... | Line 337... | ||
337 | for (cur = ta->th_head.next; cur != &ta->th_head; cur = cur->next) { |
337 | for (cur = ta->th_head.next; cur != &ta->th_head; cur = cur->next) { |
338 | thread_t *thr; |
338 | thread_t *thr; |
339 | bool sleeping = false; |
339 | bool sleeping = false; |
340 | 340 | ||
341 | thr = list_get_instance(cur, thread_t, th_link); |
341 | thr = list_get_instance(cur, thread_t, th_link); |
342 | 342 | ||
343 | spinlock_lock(&thr->lock); |
343 | spinlock_lock(&thr->lock); |
344 | thr->interrupted = true; |
344 | thr->interrupted = true; |
345 | if (thr->state == Sleeping) |
345 | if (thr->state == Sleeping) |
346 | sleeping = true; |
346 | sleeping = true; |
347 | spinlock_unlock(&thr->lock); |
347 | spinlock_unlock(&thr->lock); |