hanchenye-llvm-project/libcxx
David Chisnall 8b6a4de64a Fix a bug in mutex_try_to_lock. This was previously trying to unlock a mutex that it didn't own, causing an assertion failure in mutex.cpp. The issue was that the unique_lock went out of scope, releasing the lock on m, then m.unlock() was called on an already-unlocked mutex.
This change removes the spurious m.unlock() call.  

If this test was previously passing for anyone with assertions enabled, then they should investigate bugs in their pthread implementation, as pthread_unlock() should not return 0 if the mutex is currently unlocked.

llvm-svn: 175506
2013-02-19 11:28:45 +00:00
..
cmake http://llvm.org/bugs/show_bug.cgi?id=9399 fixed by Ryuta Suzuki 2011-05-24 12:54:00 +00:00
include Change the 'result_type' from unsigned to 'uint_fast32_t'. This eliminates truncation warnings on Linux 2013-02-07 22:12:02 +00:00
lib [build/Darwin] Use the correct libc++abi reexport list. 2013-02-07 00:24:19 +00:00
src Belt and suspenders when calling sysconf 2013-02-07 18:48:09 +00:00
test Fix a bug in mutex_try_to_lock. This was previously trying to unlock a mutex that it didn't own, causing an assertion failure in mutex.cpp. The issue was that the unique_lock went out of scope, releasing the lock on m, then m.unlock() was called on an already-unlocked mutex. 2013-02-19 11:28:45 +00:00
www Bruce Mitchener: Minor typo fixes. 2013-02-15 15:37:50 +00:00
.arcconfig Add a simple .arcconfig to make using the 'arc' commandline tool and the 2012-12-31 05:59:45 +00:00
CMakeLists.txt Michael van der Westhuizen: update to CMake. 2013-02-08 19:04:53 +00:00
CREDITS.TXT Add Michael van der Westhuizen to CREDITS.TXT 2013-02-08 19:08:06 +00:00
LICENSE.TXT Update the copyright coredits -- Happy new year 2013! 2013-01-01 10:00:19 +00:00
Makefile Fix installheaders target to do what it did prior to r161760. rdar://12348765 2012-09-21 20:49:54 +00:00