posix osdMutex recursive type is not optional
epicsMutexId is expected to be recursive so fail if this is not possible.
This commit is contained in:
committed by
Michael Davidsaver
parent
e41bd3994e
commit
503f46ec8c
@@ -80,7 +80,9 @@ epicsMutexOSD * epicsMutexOsdCreate(void) {
|
||||
|
||||
status = pthread_mutexattr_settype(&pmutex->mutexAttr,
|
||||
PTHREAD_MUTEX_RECURSIVE);
|
||||
if (errVerbose) checkStatus(status, "pthread_mutexattr_settype");
|
||||
checkStatus(status, "pthread_mutexattr_settype");
|
||||
if (status)
|
||||
goto fail;
|
||||
|
||||
status = pthread_mutex_init(&pmutex->lock, &pmutex->mutexAttr);
|
||||
if (status)
|
||||
|
||||
Reference in New Issue
Block a user