Ignore:
Timestamp:
2012-07-06T13:31:02Z (13 years ago)
Author:
Adam Hraska <adam.hraska+hos@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0d56712
Parents:
518dd43
Message:

workq: Add work queues: allow blocking work items, queuing items from interrupt handlers.

File:
1 edited

Legend:

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

    r518dd43 r8a64e81e  
    180180        /** Thread ID. */
    181181        thread_id_t tid;
     182
     183        /** Work queue this thread belongs to or NULL. Immutable. */
     184        struct work_queue *workq;
     185        /** Links work queue threads. Protected by workq->lock. */
     186        link_t workq_link;
     187        /** True if the worker was blocked and is not running.
     188         *
     189         * Protected by thread->lock.
     190         */
     191        bool workq_blocked;
     192        /** True if the worker will block in order to become idle.
     193         *
     194         * Protected by workq->lock.
     195         */
     196        bool workq_idling;
    182197       
    183198        /** Architecture-specific data. */
Note: See TracChangeset for help on using the changeset viewer.