g+
g+ Communities
Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
<== Date ==> <== Thread ==>

Subject: Re: RFC: libCom/osi - new spinlock API
From: Ralph Lange <Ralph.Lange@gmx.de>
To: EPICS Core Talk <core-talk@aps.anl.gov>
Date: Mon, 29 Oct 2012 22:10:01 +0100
Hi,

I have pushed my spinlocks branch onto Launchpad at
https://code.launchpad.net/~epics-core/epics-base/spinlocks

This has two variants of posix implementations (pthread_spin if
available, else pthread_mutex), one for vxWorks/single CPU (intLock),
and a default implementation (epicsMutex).
I added test code (based on the tests for epicsMutex), and tested both
posix variants and the default implementation on my Linux box.

On this machine, I found the posix spinlock implementation working about
twice as fast as the posix mutex.

Please test and verify on other platforms
(RTEMS/vxWorks/Windows/Solaris/OSX) if you have a chance.

Thanks a lot!
~Ralph


Replies:
Re: RFC: libCom/osi - new spinlock API Andrew Johnson
References:
RFC: libCom/osi - new spinlock API Ralph Lange
Re: RFC: libCom/osi - new spinlock API Ralph Lange
RE: RFC: libCom/osi - new spinlock API nick.rees
Re: RFC: libCom/osi - new spinlock API Andrew Johnson

Navigate by Date:
Prev: Re: RFC: libCom/osi - new spinlock API Andrew Johnson
Next: [Merge] lp:~epics-core/epics-base/spinlocks into lp:epics-base Ralph Lange
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
Navigate by Thread:
Prev: Re: RFC: libCom/osi - new spinlock API Andrew Johnson
Next: Re: RFC: libCom/osi - new spinlock API Andrew Johnson
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
ANJ, 26 Nov 2012 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICSv4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·