From 3b9feeed120af45a2dc346592b328eb0b2e14911 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sun, 11 Apr 2021 11:05:36 +0200 Subject: Improvement in internal mutex handling on signal, and [DYNAREC] multitasking changes to the JmpTable --- src/include/custommem.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/include/custommem.h') diff --git a/src/include/custommem.h b/src/include/custommem.h index 15f38596..1b86d251 100644 --- a/src/include/custommem.h +++ b/src/include/custommem.h @@ -52,6 +52,10 @@ void unlockDB(); void* find32bitBlock(size_t size); void* findBlockNearHint(void* hint, size_t size); +// unlock mutex that are locked by current thread (for signal handling). Return a mask of unlock mutex +int unlockCustommemMutex(); +// relock the muxtex that were unlocked +void relockCustommemMutex(int locks); void init_custommem_helper(box64context_t* ctx); void fini_custommem_helper(box64context_t* ctx); -- cgit 1.4.1