Module: xenomai-head
Branch: master
Commit: bd1b54eac42c066985518788ec31427579b7cc15
URL:    
http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=bd1b54eac42c066985518788ec31427579b7cc15

Author: Philippe Gerum <r...@xenomai.org>
Date:   Mon May 31 18:54:44 2010 +0200

uitron: fix wait flag helper

All wait flag services from the uITRON emulator were missing the wait
mask and mode information in the sleeper TCB, so there is no way they
could ever work.

---

 ksrc/skins/uitron/flag.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/ksrc/skins/uitron/flag.c b/ksrc/skins/uitron/flag.c
index 8238ca7..c7f3c0d 100644
--- a/ksrc/skins/uitron/flag.c
+++ b/ksrc/skins/uitron/flag.c
@@ -316,6 +316,8 @@ static ER wai_flg_helper(UINT *p_flgptn,
        task = ui_current_task();
 
        xnthread_clear_info(&task->threadbase, uITRON_TASK_RLWAIT);
+       task->wargs.flag.wfmode = wfmode;
+       task->wargs.flag.waiptn = waiptn;
 
        xnsynch_sleep_on(&flag->synchbase, timeout, XN_RELATIVE);
 


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to