aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/threads.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/threads.h')
-rw-r--r--src/include/threads.h17
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
};