Logo
Explore Help
Sign In
llvm/libcxx
1
0
Fork 0
You've already forked libcxx
mirror of https://github.com/llvm-mirror/libcxx.git synced 2025-10-24 12:02:36 +08:00
Code Issues Packages Projects Releases Wiki Activity
Files
24a7e331f19489eddf31f26e40c1eeae1c8049b2
libcxx/test/thread/thread.mutex
History
David Chisnall 76aa2ef017 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.



git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@175506 91177308-0d34-0410-b5e6-96231b3b80d8
2013-02-19 11:28:45 +00:00
..
thread.lock
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
thread.lock.algorithm
license change
2010-11-16 22:09:02 +00:00
thread.mutex.requirements
[tests] Another batch of timeout increases.
2013-02-11 21:04:34 +00:00
thread.once
noexcept and constexpr applied to <mutex>.
2012-07-21 16:13:09 +00:00
version.pass.cpp
license change
2010-11-16 22:09:02 +00:00
Powered by Gitea Version: 1.24.6 Page: 57ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API