mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-14 15:36:25 +00:00
linux-user: initialize mmap_mutex properly
We initialize mmap_mutex in any child threads/processes, but we need to correctly statically initialize it for the original process. Signed-off-by: Nathan Froyd <froydnj@codesourcery.com> Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
This commit is contained in:
parent
5f10681186
commit
df377d0354
@ -36,7 +36,7 @@
|
|||||||
//#define DEBUG_MMAP
|
//#define DEBUG_MMAP
|
||||||
|
|
||||||
#if defined(USE_NPTL)
|
#if defined(USE_NPTL)
|
||||||
pthread_mutex_t mmap_mutex;
|
pthread_mutex_t mmap_mutex = PTHREAD_MUTEX_INITIALIZER;
|
||||||
static int __thread mmap_lock_count;
|
static int __thread mmap_lock_count;
|
||||||
|
|
||||||
void mmap_lock(void)
|
void mmap_lock(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user