summaryrefslogtreecommitdiffstats
path: root/libcxxabi/test/test_exception_storage.pass.cpp
diff options
context:
space:
mode:
authorAsiri Rathnayake <asiri.rathnayake@arm.com>2017-01-03 12:58:34 +0000
committerAsiri Rathnayake <asiri.rathnayake@arm.com>2017-01-03 12:58:34 +0000
commit97ba9fae1f536778b1aaff4220512626e6170728 (patch)
treeb571c9be99563d7dd7d8343a904a53f00d1addf9 /libcxxabi/test/test_exception_storage.pass.cpp
parentb44b4cbae8417b2f51ff7316b06326f5ed79929c (diff)
downloadbcm5719-llvm-97ba9fae1f536778b1aaff4220512626e6170728.tar.gz
bcm5719-llvm-97ba9fae1f536778b1aaff4220512626e6170728.zip
[libcxxabi] Introduce an externally threaded libc++abi variant.
r281179 Introduced an externally threaded variant of the libc++ library. This patch adds support for a similar library variant for libc++abi. Differential revision: https://reviews.llvm.org/D27575 Reviewers: EricWF llvm-svn: 290888
Diffstat (limited to 'libcxxabi/test/test_exception_storage.pass.cpp')
-rw-r--r--libcxxabi/test/test_exception_storage.pass.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/libcxxabi/test/test_exception_storage.pass.cpp b/libcxxabi/test/test_exception_storage.pass.cpp
index 13a4a60c797..67ab51d1964 100644
--- a/libcxxabi/test/test_exception_storage.pass.cpp
+++ b/libcxxabi/test/test_exception_storage.pass.cpp
@@ -12,7 +12,7 @@
#include <cstdlib>
#include <algorithm>
#include <iostream>
-#include "../src/threading_support.h"
+#include <__threading_support>
#include <unistd.h>
#include "../src/cxa_exception.hpp"
@@ -39,7 +39,7 @@ void *thread_code (void *parm) {
#ifndef _LIBCXXABI_HAS_NO_THREADS
#define NUMTHREADS 10
size_t thread_globals [ NUMTHREADS ] = { 0 };
-__libcxxabi_thread_t threads [ NUMTHREADS ];
+std::__libcpp_thread_t threads [ NUMTHREADS ];
#endif
int main () {
@@ -48,9 +48,9 @@ int main () {
#ifndef _LIBCXXABI_HAS_NO_THREADS
// Make the threads, let them run, and wait for them to finish
for ( int i = 0; i < NUMTHREADS; ++i )
- __libcxxabi_thread_create ( threads + i, thread_code, (void *) (thread_globals + i));
+ std::__libcpp_thread_create ( threads + i, thread_code, (void *) (thread_globals + i));
for ( int i = 0; i < NUMTHREADS; ++i )
- __libcxxabi_thread_join ( &threads [ i ] );
+ std::__libcpp_thread_join ( &threads [ i ] );
for ( int i = 0; i < NUMTHREADS; ++i )
if ( 0 == thread_globals [ i ] ) {
OpenPOWER on IntegriCloud