[llvm-commits] [llvm] r125804 - /llvm/trunk/lib/Support/Mutex.cpp

Argyrios Kyrtzidis akyrtzi at gmail.com
Thu Feb 17 16:47:07 PST 2011


Author: akirtzidis
Date: Thu Feb 17 18:47:07 2011
New Revision: 125804

URL: http://llvm.org/viewvc/llvm-project?rev=125804&view=rev
Log:
Check the errorcode.

Modified:
    llvm/trunk/lib/Support/Mutex.cpp

Modified: llvm/trunk/lib/Support/Mutex.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Mutex.cpp?rev=125804&r1=125803&r2=125804&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Mutex.cpp (original)
+++ llvm/trunk/lib/Support/Mutex.cpp Thu Feb 17 18:47:07 2011
@@ -78,6 +78,7 @@
 #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





More information about the llvm-commits mailing list