summaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2014-06-16 22:49:41 +0000
committerZachary Turner <zturner@google.com>2014-06-16 22:49:41 +0000
commit5ea46694d0b48eebcf04d9e1fc0dac6382356f32 (patch)
tree686459ef65febf5538b05e7f68c26f04c6a5d7c8 /unittests
parent298ff80849de645ab7afb92004759350309de400 (diff)
downloadllvm-5ea46694d0b48eebcf04d9e1fc0dac6382356f32.tar.gz
llvm-5ea46694d0b48eebcf04d9e1fc0dac6382356f32.tar.bz2
llvm-5ea46694d0b48eebcf04d9e1fc0dac6382356f32.tar.xz
Revert r211066, 211067, 211068, 211069, 211070.
These were committed accidentally from the wrong branch before having a review sign-off. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211072 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/Support/ManagedStatic.cpp2
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