diff options
author | Timur Iskhodzhanov <timurrrr@google.com> | 2012-02-24 15:28:43 +0000 |
---|---|---|
committer | Timur Iskhodzhanov <timurrrr@google.com> | 2012-02-24 15:28:43 +0000 |
commit | 600972e3427173cc8904d741decd1af0ed5de9fd (patch) | |
tree | 117b3265b3195aea25e53c8f5b4f90d1d5ecf677 /lib/asan/asan_thread.h | |
parent | bfc694d2a8531444c7c44e5785c0bb708601eb54 (diff) | |
download | compiler-rt-600972e3427173cc8904d741decd1af0ed5de9fd.tar.gz compiler-rt-600972e3427173cc8904d741decd1af0ed5de9fd.tar.bz2 compiler-rt-600972e3427173cc8904d741decd1af0ed5de9fd.tar.xz |
[ASan] Intercept CreateThread on Windows
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@151366 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_thread.h')
-rw-r--r-- | lib/asan/asan_thread.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/asan/asan_thread.h b/lib/asan/asan_thread.h index 9fc1e26c..09607d91 100644 --- a/lib/asan/asan_thread.h +++ b/lib/asan/asan_thread.h @@ -65,12 +65,12 @@ class AsanThreadSummary { class AsanThread { public: explicit AsanThread(LinkerInitialized); // for T0. - static AsanThread *Create(int parent_tid, void *(*start_routine) (void *), + static AsanThread *Create(int parent_tid, thread_callback_t start_routine, void *arg, AsanStackTrace *stack); void Destroy(); void Init(); // Should be called from the thread itself. - void *ThreadStart(); + thread_return_t ThreadStart(); uintptr_t stack_top() { return stack_top_; } uintptr_t stack_bottom() { return stack_bottom_; } @@ -96,7 +96,7 @@ class AsanThread { void SetThreadStackTopAndBottom(); void ClearShadowForThreadStack(); AsanThreadSummary *summary_; - void *(*start_routine_) (void *param); + thread_callback_t start_routine_; void *arg_; uintptr_t stack_top_; uintptr_t stack_bottom_; |