diff options
author | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-06-02 16:16:42 +0000 |
---|---|---|
committer | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-06-02 16:16:42 +0000 |
commit | c8a706fe6242a553960ccc3071a4e75ceba6f3d2 (patch) | |
tree | e68691a013a24d3082b51b85a0837ccd50029e7c /linux-user/qemu.h | |
parent | 30813cea9b6166f2302a973d57c5818273f6c4d2 (diff) |
Multithreaded locking for mmap().
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4654 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user/qemu.h')
-rw-r--r-- | linux-user/qemu.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/linux-user/qemu.h b/linux-user/qemu.h index 093b8ff8a3..7a38bfe074 100644 --- a/linux-user/qemu.h +++ b/linux-user/qemu.h @@ -233,6 +233,8 @@ abi_long target_mremap(abi_ulong old_addr, abi_ulong old_size, abi_ulong new_addr); int target_msync(abi_ulong start, abi_ulong len, int flags); extern unsigned long last_brk; +void mmap_lock(void); +void mmap_unlock(void); /* user access */ @@ -423,4 +425,8 @@ static inline void *lock_user_string(abi_ulong guest_addr) #define unlock_user_struct(host_ptr, guest_addr, copy) \ unlock_user(host_ptr, guest_addr, (copy) ? sizeof(*host_ptr) : 0) +#if defined(USE_NPTL) +#include <pthread.h> +#endif + #endif /* QEMU_H */ |