Changeset 7509ddc in mainline for generic/include/proc/thread.h


Ignore:
Timestamp:
2006-06-04T21:54:49Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
34dcd3f
Parents:
2cb5e64
Message:

Framework for task_kill().
Some pieces (e.g. implementation of ktask_cleanup() kernel thread and
task_destroy() function) are missing.
Changed locking order for task lock, threads_lock and thread lock from
threads_lock, thread lock, task lock to task lock, threads_lock, thread lock.

File:
1 edited

Legend:

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

    r2cb5e64 r7509ddc  
    7373         *
    7474         * Protects the whole thread structure except list links above.
    75          * Must be acquired before T.lock for each T of type task_t.
    76          *
    7775         */
    7876        SPINLOCK_DECLARE(lock);
     
    9997        /** True if this thread is executing copy_to_uspace(). False otherwise. */
    10098        bool in_copy_to_uspace;
    101 
     99       
     100        /**
     101         * If true, the thread will not go to sleep at all and will
     102         * call thread_exit() before returning to userspace.
     103         */
     104        bool interrupted;                       
     105       
    102106        bool detached;                          /**< If true, thread_join_timeout() cannot be used on this thread. */
    103107        waitq_t join_wq;                        /**< Waitq for thread_join_timeout(). */
Note: See TracChangeset for help on using the changeset viewer.