Changeset 016acbe in mainline for generic/src/synch/waitq.c


Ignore:
Timestamp:
2006-04-09T14:58:42Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7f6e755
Parents:
203f4c3
Message:

Replace list of all threads with B+tree of all threads.
Add function thread_exists() for querying existence of thread.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/synch/waitq.c

    r203f4c3 r016acbe  
    7474
    7575        spinlock_lock(&threads_lock);
    76         if (!list_member(&t->threads_link, &threads_head))
     76        if (!thread_exists(t))
    7777                goto out;
    7878
     
    118118        ipl = interrupts_disable();
    119119        spinlock_lock(&threads_lock);
    120         if (!list_member(&t->threads_link, &threads_head))
     120        if (!thread_exists(t))
    121121                goto out;
    122122
Note: See TracChangeset for help on using the changeset viewer.