diff options
Diffstat (limited to 'compat/shm.h')
-rw-r--r-- | compat/shm.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compat/shm.h b/compat/shm.h index 3b37a8a3..61efaf68 100644 --- a/compat/shm.h +++ b/compat/shm.h @@ -21,18 +21,18 @@ #include "export.hpp" -class OTR_COMPAT_EXPORT PortableLockedShm final +class OTR_COMPAT_EXPORT shm_wrapper final { void* mem; #if defined(_WIN32) - HANDLE hMutex, hMapFile; + HANDLE mutex, mapped_file; #else int fd, size; #endif public: - PortableLockedShm(const char *shmName, const char *mutexName, int mapSize); - ~PortableLockedShm(); + shm_wrapper(const char *shm_name, const char *mutex_name, int map_size); + ~shm_wrapper(); bool lock(); bool unlock(); bool success(); |