llvm-project/libcxx
Eric Fiselier 9a37bc91d2 Fix race conditions in test class used throughout the std::thread tests.
The test class 'G' reads and writes to the same static variables in its
constructor, destructor and call operator. When threads are
constructed using `std::thread t((G()))` there is a race condition between the
destruction of the temporary and the execution of `G::operator()()`.

The fix is to simply create the input before creating the thread.

llvm-svn: 233946
2015-04-02 21:12:17 +00:00
..
cmake [libcxx] Add code coverage configuration to CMake and LIT. 2015-03-31 04:15:45 +00:00
include [libcxx] Fix bug in shared_timed_mutex that could cause a program to hang. 2015-04-02 21:02:06 +00:00
lib [libcxx] Add code coverage configuration to CMake and LIT. 2015-03-31 04:15:45 +00:00
src Make the presence of stdin and stdout optional. 2015-03-26 14:35:46 +00:00
test Fix race conditions in test class used throughout the std::thread tests. 2015-04-02 21:12:17 +00:00
utils cleanup comments in sym_check 2015-03-27 06:04:37 +00:00
www [libcxx] Unify LIBCXX_<ABI-Name>_INCLUDE_PATHS to be LIBCXX_CXX_ABI_INCLUDE_PATHS 2015-03-19 20:59:45 +00:00
.arcconfig Update Arcanist config to point to reviews.llvm.org 2014-06-10 18:29:36 +00:00
.gitignore [libc++] Refactor test components into modules. 2015-01-09 18:03:29 +00:00
CMakeLists.txt [libcxx] Add code coverage configuration to CMake and LIT. 2015-03-31 04:15:45 +00:00
CREDITS.TXT Add self to CREDITS.txt 2015-02-26 00:48:22 +00:00
LICENSE.TXT Update copyright year to 2015. 2015-03-12 20:13:11 +00:00
Makefile Revert "Fix installheaders target's permissions" 2014-12-16 05:28:07 +00:00