Changeset 016acbe in mainline for generic/include/proc/thread.h


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/include/proc/thread.h

    r203f4c3 r016acbe  
    3939#include <synch/rwlock.h>
    4040#include <config.h>
     41#include <adt/btree.h>
    4142#include <adt/list.h>
    4243#include <mm/slab.h>
     
    6667        link_t wq_link;                         /**< Wait queue link. */
    6768        link_t th_link;                         /**< Links to threads within containing task. */
    68         link_t threads_link;                    /**< Link to the list of all threads. */
    6969       
    7070        /** Lock protecting thread structure.
     
    131131extern spinlock_t threads_lock;
    132132
    133 extern link_t threads_head;                     /**< List of all threads in the system. */
     133extern btree_t threads_btree;                   /**< B+tree containing all threads. */
    134134
    135135extern void thread_init(void);
     
    144144extern void thread_print_list(void);
    145145extern void thread_destroy(thread_t *t);
     146extern bool thread_exists(thread_t *t);
    146147
    147148/* Fpu context slab cache */
Note: See TracChangeset for help on using the changeset viewer.