Experimental Physics and Industrial Control System
|
Hi Mike,
Have you worked out what those semFlush() calls are actually doing in the original code? Do they always come immediately after a semGive() for example? I think you would be best advised to try to discover what is actually going
on in the original implementation instead of just trying to mechanically convert every call; my previous discussion was partly to explain that in reality the semFlush() probably wasn't doing what the original author might have thought, and as a result you
might not need to replace it with anything. Once you've worked out how the various tasks communicate with each other you'll be in a better position to decide how to convert the signaling code.
- Andrew
--
Sent from my iPad
Hi Andrew,
Thanks for the explanation.
We're converting code from vxWorks to OSI (on top of RTEMS), and was wondering what to do with the semFlush() calls that are being used on binary semaphores. Specifically, we're working on the Allen-Bradley DF1 driver.
Maybe what I should do is have a global counter that each thread increments before calling epicsEventWait(), and have the thread that calls epicsEventSignal() repeatedly signal and decrement the counter till it's zero..
Or is there a better way?
|
- Replies:
- Re: epicsEventSignal() question Henrique Almeida
- Re: epicsEventSignal() question Michael Westfall
- References:
- epicsEventSignal() question Michael Westfall
- Re: epicsEventSignal() question Andrew Johnson
- Re: epicsEventSignal() question Michael Westfall
- Navigate by Date:
- Prev:
Re: epicsEventSignal() question Till Straumann
- Next:
motor: rval/lrvl double or long ? Torsten Bögershausen
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
<2016>
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: epicsEventSignal() question Till Straumann
- Next:
Re: epicsEventSignal() question Henrique Almeida
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
<2016>
2017
2018
2019
2020
2021
2022
2023
2024
|
ANJ, 15 Jul 2016 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
·
Search
·
EPICS V4
·
IRMIS
·
Talk
·
Bugs
·
Documents
·
Links
·
Licensing
·
|