diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2007-10-02 16:52:18 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2007-10-02 16:52:18 +0000 |
commit | 1b269aa139ba66288cc2c3f1b463c73821343262 (patch) | |
tree | d69e3b0f8016def9da728232fc82f6297f4f70ed /src/include/threads.h | |
parent | e4e90fae74549139baaf135034b3be2abcf284a6 (diff) | |
download | ChibiOS-1b269aa139ba66288cc2c3f1b463c73821343262.tar.gz ChibiOS-1b269aa139ba66288cc2c3f1b463c73821343262.tar.bz2 ChibiOS-1b269aa139ba66288cc2c3f1b463c73821343262.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@29 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/include/threads.h')
-rw-r--r-- | src/include/threads.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/include/threads.h b/src/include/threads.h index beb41aae7..12737de2e 100644 --- a/src/include/threads.h +++ b/src/include/threads.h @@ -78,7 +78,7 @@ struct Thread { * systems, be caruful in doing so.
*/
#ifdef CH_USE_WAITEXIT
- /** The queue of the threads waiting for this thread termination.*/
+ /** The list of the threads waiting for this thread termination.*/
ThreadsList p_waiting;
#endif
#ifdef CH_USE_EXIT_EVENT
@@ -151,10 +151,8 @@ typedef t_msg (*t_tfunc)(void *); #ifdef CH_OPTIMIZE_SPEED
static INLINE void fifo_insert(Thread *tp, ThreadsQueue *tqp) {
- tp->p_next = (Thread *)tqp;
- tp->p_prev = tqp->p_prev;
- tqp->p_prev->p_next = tp;
- tqp->p_prev = tp;
+ tp->p_prev = (tp->p_next = (Thread *)tqp)->p_prev;
+ tp->p_prev->p_next = tqp->p_prev = tp;
}
static INLINE Thread *fifo_remove(ThreadsQueue *tqp) {
|