From: Argyrios Kyrtzidis Date: Fri, 18 Feb 2011 00:47:07 +0000 (+0000) Subject: Check the errorcode. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=c788f44642f746a7b527c2ac6a706db5da7c6218;p=oota-llvm.git Check the errorcode. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125804 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Support/Mutex.cpp b/lib/Support/Mutex.cpp index 488868febe4..b408973bbad 100644 --- a/lib/Support/Mutex.cpp +++ b/lib/Support/Mutex.cpp @@ -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