diff options
Diffstat (limited to 'lib/stop-other-threads.h')
-rw-r--r-- | lib/stop-other-threads.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/stop-other-threads.h b/lib/stop-other-threads.h new file mode 100644 index 0000000..1f6e639 --- /dev/null +++ b/lib/stop-other-threads.h @@ -0,0 +1,9 @@ +#pragma once +#include <stdint.h> + +/* 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); |