mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 23:25:48 +00:00
include/exec: Add WITH_MMAP_LOCK_GUARD
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
@ -32,6 +32,7 @@ void mmap_lock(void)
|
||||
|
||||
void mmap_unlock(void)
|
||||
{
|
||||
assert(mmap_lock_count > 0);
|
||||
if (--mmap_lock_count == 0) {
|
||||
pthread_mutex_unlock(&mmap_mutex);
|
||||
}
|
||||
|
Reference in New Issue
Block a user