From 7c26a1964d2d2e54f87d9c42735f6c99b546abd4 Mon Sep 17 00:00:00 2001 From: comex Date: Wed, 18 Feb 2015 02:22:36 -0500 Subject: Fix hook-function: - Thread stoppage is now complemented by sigaction to catch injected threads (sigaction is not used exclusively because the rest of the program could be trying to use sigaction itself in the meantime - this is a real thing, ask Dolphin) - mprotect is no longer used due to max_protection possibly getting in the way; instead, a copy is created and mapped onto the original. --- lib/stop-other-threads.h | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 lib/stop-other-threads.h (limited to 'lib/stop-other-threads.h') diff --git a/lib/stop-other-threads.h b/lib/stop-other-threads.h deleted file mode 100644 index 1f6e639..0000000 --- a/lib/stop-other-threads.h +++ /dev/null @@ -1,9 +0,0 @@ -#pragma once -#include - -/* Stop the world; return token to be used for applying PC patches and resuming. */ -int stop_other_threads(void **token_ptr); -int apply_pc_patch_callback(void *token, - uintptr_t (*pc_patch_callback)(void *ctx, uintptr_t pc), - void *ctx); -int resume_other_threads(void *token); -- cgit v1.2.3