diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-11-05 21:17:14 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2021-11-05 21:17:14 +0100 |
| commit | f73e4193f032713529e26c4537e5fac44147c040 (patch) | |
| tree | 6aa77ae5b0cb2020a7da473d43d2bf0fc4b90efc /src/include | |
| parent | 841003bc472bbfc947e5f89f5eddae341ba7e609 (diff) | |
| download | box64-f73e4193f032713529e26c4537e5fac44147c040.tar.gz box64-f73e4193f032713529e26c4537e5fac44147c040.zip | |
Chnaged memory protection tracking to reduce usage of lock, especially for [DYNAREC] reduced mutrex and chances of deadlock (help RimWorld)
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/custommem.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/include/custommem.h b/src/include/custommem.h index 4e4ff6b4..156d0c11 100644 --- a/src/include/custommem.h +++ b/src/include/custommem.h @@ -45,10 +45,8 @@ uint32_t getProtection(uintptr_t addr); void loadProtectionFromMap(); #ifdef DYNAREC void protectDB(uintptr_t addr, size_t size); -void protectDBnolock(uintptr_t addr, size_t size); void unprotectDB(uintptr_t addr, size_t size); -void lockDB(); -void unlockDB(); +int isprotectedDB(uintptr_t addr, size_t size); #endif void* find32bitBlock(size_t size); void* findBlockNearHint(void* hint, size_t size); |