Check the errorcode.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 18 Feb 2011 00:47:07 +0000 (00:47 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 18 Feb 2011 00:47:07 +0000 (00:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125804 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/Mutex.cpp

index 488868febe409d1c9d3da1b8717732ba8122f9e3..b408973bbad1557b922c2a5bc97f081f1fa2e519 100644 (file)
@@ -78,6 +78,7 @@ MutexImpl::MutexImpl( bool recursive)
 #if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__DragonFly__)
     // Make it a process local mutex
     errorcode = pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_PRIVATE);
+    assert(errorcode == 0);
 #endif
 
     // Initialize the mutex