EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: [Merge] ~dirk.zimoch/epics-base:epicsMutexPriorityInheritance into epics-base:7.0
From: mdavidsaver via Core-talk <core-talk at aps.anl.gov>
To: mp+394327 at code.launchpad.net
Date: Tue, 26 Jan 2021 16:00:47 -0000
> ... Have you really seen ...

Yes Dirk, really really.  cf. https://github.com/rr-debugger/rr/issues/2750

If we open the source it's easy enough to see what glibc (at least) is doing.

https://github.com/bminor/glibc/blob/76ea70c613cee23a1846b9605e6433c1fa8baea7/nptl/pthread_mutexattr_setprotocol.c#L25

So pthread_mutexattr_setprotocol() will only fail if passed an unknown flag.

https://github.com/bminor/glibc/blob/76ea70c613cee23a1846b9605e6433c1fa8baea7/nptl/pthread_mutex_init.c#L76-L78

And here is pthread_mutex_init() testing for OS support, and returning ENOTSUP if this isn't found.

If anything, I'm left with some gratitude that glibc does this test in pthread_mutex_init() instead of letting it be discovered during pthread_mutex_lock(). 

Also, seeing how pthread_mutexattr_t is only a bit mask makes me skeptical of economizing.
-- 
https://code.launchpad.net/~dirk.zimoch/epics-base/+git/epics-base/+merge/394327
Your team EPICS Core Developers is subscribed to branch epics-base:7.0.

Navigate by Date:
Prev: Build failed in Jenkins: EPICS-7 #312 Jenkins EPICS PSI via Core-talk
Next: Re: [Merge] ~dirk.zimoch/epics-base:epicsMutexPriorityInheritance into epics-base:7.0 Dirk Zimoch via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
Navigate by Thread:
Prev: Re: [Merge] ~dirk.zimoch/epics-base:epicsMutexPriorityInheritance into epics-base:7.0 Heinz Junkes via Core-talk
Next: Re: [Merge] ~dirk.zimoch/epics-base:epicsMutexPriorityInheritance into epics-base:7.0 Dirk Zimoch via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
ANJ, 26 Jan 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·