Experimental Physics and
| |||||||||||||||||
|
http://www.aps.anl.gov/epics/wiki/index.php/ How_to_make_your_EPICS_driver_operating_system_independent You’ll have to use your judgement here. If the section of code being protected is ‘quick’ (less than a few microseconds) it’s rea- sonable to simply disable interrupts while the code is active. In this case you can remove the ‘lock’ variable and the init/free operations and then add a local ‘key’ variable and replace the lock/unlock operations with epicsInterruptLock/Unlock opera- tions. If the section of code being protected is longer you’ll have to convert the FASTLOCK to an EPICS mutex. On Oct 19, 2006, at 10:52 AM, Dirk Zimoch wrote: Hi all
| ||||||||||||||||
ANJ, 02 Sep 2010 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |