diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2014-06-24 13:36:31 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2014-06-24 13:36:31 +0000 |
commit | cdde33ebaad211e1ce0fc22b53bbccff8bb3c1a4 (patch) | |
tree | 95d91245366b3a7cc446072a43fd365ba07f7da1 /unittests | |
parent | 90be077d09df2f577448105c6dfd6ef78c4e6b6f (diff) | |
download | llvm-cdde33ebaad211e1ce0fc22b53bbccff8bb3c1a4.tar.gz llvm-cdde33ebaad211e1ce0fc22b53bbccff8bb3c1a4.tar.bz2 llvm-cdde33ebaad211e1ce0fc22b53bbccff8bb3c1a4.tar.xz |
Revert r211287, "Remove support for LLVM runtime multi-threading."
libclang still requires it on cygming, lack of incomplete <mutex>.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211592 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/Support/ManagedStatic.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/unittests/Support/ManagedStatic.cpp b/unittests/Support/ManagedStatic.cpp index 153884ba42..ad2fc977e6 100644 --- a/unittests/Support/ManagedStatic.cpp +++ b/unittests/Support/ManagedStatic.cpp @@ -47,6 +47,7 @@ TEST(Initialize, MultipleThreads) { void *p1 = test1::allocate_stack(a1); void *p2 = test1::allocate_stack(a2); + llvm_start_multithreaded(); pthread_t t1, t2; pthread_create(&t1, &a1, test1::helper, nullptr); pthread_create(&t2, &a2, test1::helper, nullptr); @@ -54,6 +55,7 @@ TEST(Initialize, MultipleThreads) { pthread_join(t2, nullptr); free(p1); free(p2); + llvm_stop_multithreaded(); } #endif |