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