mirror of
https://github.com/xemu-project/xemu.git
synced 2025-04-02 11:11:48 -04: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
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@
|
|||
//#define DEBUG_MMAP
|
||||
|
||||
#if defined(USE_NPTL)
|
||||
pthread_mutex_t mmap_mutex;
|
||||
pthread_mutex_t mmap_mutex = PTHREAD_MUTEX_INITIALIZER;
|
||||
static int __thread mmap_lock_count;
|
||||
|
||||
void mmap_lock(void)
|
||||
|
|
Loading…
Add table
Reference in a new issue