diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-11-09 11:12:11 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-11-09 11:12:11 +0000 |
commit | 6776d069274223f061f9f4e15e5732a7b454bd51 (patch) | |
tree | c2aa7a6b772521de77be0bd2b94f57ac823bf24f /src/include/threads.h | |
parent | 87d83b1b7e37925f3e32e79e6e6baedb5b13f192 (diff) | |
download | ChibiOS-6776d069274223f061f9f4e15e5732a7b454bd51.tar.gz ChibiOS-6776d069274223f061f9f4e15e5732a7b454bd51.tar.bz2 ChibiOS-6776d069274223f061f9f4e15e5732a7b454bd51.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@505 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/include/threads.h')
-rw-r--r-- | src/include/threads.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/include/threads.h b/src/include/threads.h index a0b0b362b..d5f82ea9f 100644 --- a/src/include/threads.h +++ b/src/include/threads.h @@ -56,29 +56,34 @@ struct Thread { * thread in the system. */ union { - /** Thread wakeup code (only valid when exiting the \p PRREADY state). */ + /** Thread wakeup code (only valid when exiting the \p PRREADY state).*/ msg_t p_rdymsg; /** The thread exit code (only while in \p PREXIT state).*/ msg_t p_exitcode; #ifdef CH_USE_SEMAPHORES - /** Semaphore where the thread is waiting on (only in \p PRWTSEM state). */ + /** Semaphore where the thread is waiting on (only in \p PRWTSEM state).*/ Semaphore *p_wtsemp; #endif #ifdef CH_USE_MUTEXES - /** Mutex where the thread is waiting on (only in \p PRWTMTX state). */ + /** Mutex where the thread is waiting on (only in \p PRWTMTX state).*/ Mutex *p_wtmtxp; #endif +#ifdef CH_USE_CONDVARS + /** CondVar where the thread is waiting on (only in \p PRWTCOND state).*/ + CondVar *p_wtcondp; +#endif #ifdef CH_USE_MESSAGES - /** Destination thread for message send (only in \p PRSNDMSG state). */ + /** Destination thread for message send (only in \p PRSNDMSG state).*/ Thread *p_wtthdp; #endif #ifdef CH_USE_EVENTS - /** Enabled events mask (only while in \p PRWTEVENT state). */ + /** Enabled events mask (only while in \p PRWTOREVT or \p PRWTANDEVT + states). */ eventmask_t p_ewmask; #endif #ifdef CH_USE_TRACE /** Kernel object where the thread is waiting on. It is only valid when - the thread is some sleeping states. */ + the thread is some sleeping states.*/ void *p_wtobjp; #endif }; |