diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-01-08 13:41:04 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-01-08 13:41:04 +0000 |
commit | ba030d32c3e65ec5d4c6c6eaf7f55d7c61aae0b8 (patch) | |
tree | 8a1636ebb9308dbf17db0f30d8ecf5dc03587cb6 /src/chsem.c | |
parent | 79194eae8e198e6a480dcb5d6e5c57b28af07f0b (diff) | |
download | ChibiOS-ba030d32c3e65ec5d4c6c6eaf7f55d7c61aae0b8.tar.gz ChibiOS-ba030d32c3e65ec5d4c6c6eaf7f55d7c61aae0b8.tar.bz2 ChibiOS-ba030d32c3e65ec5d4c6c6eaf7f55d7c61aae0b8.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@170 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/chsem.c')
-rw-r--r-- | src/chsem.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/chsem.c b/src/chsem.c index 8e5073248..0ab603b03 100644 --- a/src/chsem.c +++ b/src/chsem.c @@ -109,7 +109,7 @@ t_msg chSemWaitS(Semaphore *sp) { if (--sp->s_cnt < 0) {
fifo_insert(currp, &sp->s_queue);
- currp->p_semp = sp;
+ currp->p_wtsemp = sp;
chSchGoSleepS(PRWTSEM);
return currp->p_rdymsg;
}
@@ -120,7 +120,7 @@ t_msg chSemWaitS(Semaphore *sp) { static void wakeup(void *p) {
chDbgAssert(((Thread *)p)->p_state == PRWTSEM, "chsem.c, wakeup()");
- chSemFastSignalI(((Thread *)p)->p_semp);
+ chSemFastSignalI(((Thread *)p)->p_wtsemp);
chSchReadyI(dequeue(p), RDY_TIMEOUT);
}
@@ -158,7 +158,7 @@ t_msg chSemWaitTimeoutS(Semaphore *sp, t_time time) { chVTSetI(&vt, time, wakeup, currp);
fifo_insert(currp, &sp->s_queue);
- currp->p_semp = sp;
+ currp->p_wtsemp = sp;
chSchGoSleepS(PRWTSEM);
if (chVTIsArmedI(&vt))
chVTResetI(&vt);
@@ -215,7 +215,7 @@ void chSemSignalWait(Semaphore *sps, Semaphore *spw) { if (--spw->s_cnt < 0) {
fifo_insert(currp, &spw->s_queue);
- currp->p_semp = spw;
+ currp->p_wtsemp = spw;
chSchGoSleepS(PRWTSEM);
}
else
|