mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-12 01:38:37 +12:00
vm_native: add cow flag to map functions
CoW is copy-on-write mapping type.
This commit is contained in:
parent
35ee550171
commit
e327d47169
2 changed files with 16 additions and 11 deletions
|
@ -65,13 +65,13 @@ namespace utils
|
|||
~shm();
|
||||
|
||||
// Map shared memory
|
||||
u8* map(void* ptr, protection prot = protection::rw) const;
|
||||
u8* map(void* ptr, protection prot = protection::rw, bool cow = false) const;
|
||||
|
||||
// Attempt to map shared memory fix fixed pointer
|
||||
u8* try_map(void* ptr, protection prot = protection::rw) const;
|
||||
u8* try_map(void* ptr, protection prot = protection::rw, bool cow = false) const;
|
||||
|
||||
// Map shared memory over reserved memory region, which is unsafe (non-atomic) under Win32
|
||||
u8* map_critical(void* ptr, protection prot = protection::rw);
|
||||
u8* map_critical(void* ptr, protection prot = protection::rw, bool cow = false);
|
||||
|
||||
// Map shared memory into its own storage (not mapped by default)
|
||||
u8* map_self(protection prot = protection::rw);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue