mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-06 04:31:08 +00:00
Check the errorcode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125804 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
febb0bd0b9
commit
c788f44642
@ -78,6 +78,7 @@ MutexImpl::MutexImpl( bool recursive)
|
|||||||
#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__DragonFly__)
|
#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__DragonFly__)
|
||||||
// Make it a process local mutex
|
// Make it a process local mutex
|
||||||
errorcode = pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_PRIVATE);
|
errorcode = pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_PRIVATE);
|
||||||
|
assert(errorcode == 0);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Initialize the mutex
|
// Initialize the mutex
|
||||||
|
Loading…
Reference in New Issue
Block a user