From 166a37ab16749fbb710b41a2ac4c07ed4c3defaf Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 24 Apr 2014 13:09:17 +0000 Subject: tsan: stop background thread when sandbox is enabled Fixes https://code.google.com/p/thread-sanitizer/issues/detail?id=56 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@207114 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/tsan/rtl/tsan_platform.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/tsan/rtl/tsan_platform.h') diff --git a/lib/tsan/rtl/tsan_platform.h b/lib/tsan/rtl/tsan_platform.h index e960d5d99..7abe5f0d7 100644 --- a/lib/tsan/rtl/tsan_platform.h +++ b/lib/tsan/rtl/tsan_platform.h @@ -164,7 +164,8 @@ uptr ALWAYS_INLINE GetThreadTraceHeader(int tid) { return p; } -void internal_start_thread(void(*func)(void*), void *arg); +void *internal_start_thread(void(*func)(void*), void *arg); +void internal_join_thread(void *th); // Says whether the addr relates to a global var. // Guesses with high probability, may yield both false positives and negatives. -- cgit v1.2.3