Changeset fe19611 in mainline for generic/include/proc/thread.h


Ignore:
Timestamp:
2006-06-04T17:15:27Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c4e4507
Parents:
8adafa0
Message:

thread_join_timeout() and thread_detach() implementation.
Needs more thorough testing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/include/proc/thread.h

    r8adafa0 rfe19611  
    5252        Ready,          /**< State of threads in a run queue. */
    5353        Entering,       /**< Threads are in this state before they are first readied. */
    54         Exiting         /**< After a thread calls thread_exit(), it is put into Exiting state. */
     54        Exiting,        /**< After a thread calls thread_exit(), it is put into Exiting state. */
     55        Undead          /**< Threads that were not detached but exited are in the Undead state. */
    5556};
    5657
     
    9899        bool in_copy_to_uspace;
    99100
     101        bool detached;                          /**< If true, thread_join_timeout() cannot be used on this thread. */
     102        waitq_t join_wq;                        /**< Waitq for thread_join_timeout(). */
    100103
    101104        fpu_context_t *saved_fpu_context;
     
    152155extern void thread_usleep(__u32 usec);
    153156
     157extern int thread_join_timeout(thread_t *t, __u32 usec, int flags);
     158extern void thread_detach(thread_t *t);
     159
    154160extern void thread_register_call_me(void (* call_me)(void *), void *call_me_with);
    155161extern void thread_print_list(void);
Note: See TracChangeset for help on using the changeset viewer.