I did a "quick and dirty" implementation of pthread_mutex asking for a recursive
mutex. here is what epicsMutexTestHost shows on linux
Original
One lock pair completes in 0.969810 micro sec
One double recursive lock pair completes in 1.747160 micro sec
One quad recursive lock pair completes in 3.318290 micro sec
Fast
earth% epicsMutexTestHost
One lock pair completes in 0.423110 micro sec
One double recursive lock pair completes in 0.674220 micro sec
One quad recursive lock pair completes in 1.174490 micro sec
By the way. To get this to work I had to
#define _XOPEN_SOURCE 500
Marty
- References:
- RE: POSIX recursive mutex Jeff Hill
- Navigate by Date:
- Prev:
Re: POSIX recursive mutex Marty Kraimer
- Next:
RE: POSIX recursive mutex Jeff Hill
- Index:
<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: POSIX recursive mutex Marty Kraimer
- Next:
epicsMutexLockWithTimeout - where is it called Jeff Hill
- Index:
<2002>
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|