EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: FAST_LOCK and R3.14
From: Eric Norum <[email protected]>
To: Dirk Zimoch <[email protected]>
Cc: TECHTALK <[email protected]>
Date: Thu, 19 Oct 2006 11:32:28 -0500
In many cases that's going to slow your driver down more than necessary. Here are the notes from the vxWorks->OSI conversion document:

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

I have to convert some drivers from 3.13 to 3.14.

Is it save (and recommended) to replace FAST_LOCK with epicsMutex ?

Dirk

--
Dr. Dirk Zimoch
Swiss Light Source
Computing and Controls
Paul Scherrer Institut
phone +41 56 310 5182
fax   +41 56 310 4413

-- Eric Norum <[email protected]> Advanced Photon Source Argonne National Laboratory (630) 252-4793




References:
FAST_LOCK and R3.14 Dirk Zimoch

Navigate by Date:
Prev: FAST_LOCK and R3.14 Dirk Zimoch
Next: Simple EPICS tools for scaling procedure Evgeniy Tikhomolov
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: FAST_LOCK and R3.14 Dirk Zimoch
Next: Simple EPICS tools for scaling procedure Evgeniy Tikhomolov
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·