> ... 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
<2021>
2022
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
<2021>
2022
2023
2024
|