Lines Matching defs:hook
102 // will never be called. Instead, our own thread destruction hook
193 static void ThreadCreateHook(void *hook, bool aborted) {
194 AsanThread *thread = static_cast<AsanThread *>(hook);
209 static void ThreadStartHook(void *hook, uptr os_id) {
210 AsanThread *thread = static_cast<AsanThread *>(hook);
221 static void ThreadExitHook(void *hook, uptr os_id) {
236 // On Fuchsia, leak detection is done by a special hook after atexit hooks.
237 // So this doesn't install any atexit hook like on other platforms.
261 void __sanitizer_thread_create_hook(void *hook, thrd_t thread, int error) {
262 __asan::ThreadCreateHook(hook, error != thrd_success);
265 void __sanitizer_thread_start_hook(void *hook, thrd_t self) {
266 __asan::ThreadStartHook(hook, reinterpret_cast<uptr>(self));
269 void __sanitizer_thread_exit_hook(void *hook, thrd_t self) {
270 __asan::ThreadExitHook(hook, reinterpret_cast<uptr>(self));