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 | 104e5f67e2c3b714607baa435f8bf8c72e0ba443 (patch) | |
tree | 7609436df5288e94ca0aced7f594c04674cbcec4 /llvm/unittests/Support/ManagedStatic.cpp | |
parent | f59b3c1d90dc651ca2162df3f6e3e02f053a2539 (diff) | |
download | bcm5719-llvm-104e5f67e2c3b714607baa435f8bf8c72e0ba443.tar.gz bcm5719-llvm-104e5f67e2c3b714607baa435f8bf8c72e0ba443.zip |
Revert r211287, "Remove support for LLVM runtime multi-threading."
libclang still requires it on cygming, lack of incomplete <mutex>.
llvm-svn: 211592
Diffstat (limited to 'llvm/unittests/Support/ManagedStatic.cpp')
-rw-r--r-- | llvm/unittests/Support/ManagedStatic.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/unittests/Support/ManagedStatic.cpp b/llvm/unittests/Support/ManagedStatic.cpp index 153884ba429..ad2fc977e6d 100644 --- a/llvm/unittests/Support/ManagedStatic.cpp +++ b/llvm/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 |