summaryrefslogtreecommitdiffhomepage
path: root/compat/shm.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-12-25 19:27:19 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-12-25 19:27:19 +0100
commit66685c866a34cee8016599d80565a13192740f02 (patch)
treebf6b623ac673adc66948c5b44b694364c75a3f80 /compat/shm.cpp
parent7509b983edb4b95b38089a89305e1d1e988da09b (diff)
fix build
Diffstat (limited to 'compat/shm.cpp')
-rw-r--r--compat/shm.cpp26
1 files changed, 20 insertions, 6 deletions
diff --git a/compat/shm.cpp b/compat/shm.cpp
index ce01de2a..265d8ff8 100644
--- a/compat/shm.cpp
+++ b/compat/shm.cpp
@@ -13,15 +13,29 @@ SHMXX_TYPE_NAME& SHMXX_TYPE_NAME::operator=(SHMXX_TYPE_NAME&&) noexcept = defaul
// NOLINTNEXTLINE(cppcoreguidelines-pro-type-member-init)
SHMXX_TYPE_NAME::SHMXX_TYPE_NAME(const char* shm_name, const char* mutex_name, int map_size)
{
- shm_mem_impl_init(&impl, shm_name, mutex_name, map_size);
+ SHM_FUN_NAME(init)(&impl, shm_name, mutex_name, map_size);
}
SHMXX_TYPE_NAME::~SHMXX_TYPE_NAME()
{
- shm_mem_impl_free(&impl);
+ SHM_FUN_NAME(free)(&impl);
}
-bool SHMXX_TYPE_NAME::success() noexcept { return shm_mem_impl_success(&impl); }
-void SHMXX_TYPE_NAME::lock() noexcept { shm_mem_impl_lock(&impl); }
-void SHMXX_TYPE_NAME::unlock() noexcept { shm_mem_impl_unlock(&impl); }
-void* SHMXX_TYPE_NAME::ptr() noexcept { return shm_mem_impl_ptr(&impl); }
+bool SHMXX_TYPE_NAME::success() noexcept
+{
+ return SHM_FUN_NAME(success)(&impl);
+}
+void SHMXX_TYPE_NAME::lock() noexcept
+{
+ SHM_FUN_NAME(lock)(&impl);
+}
+
+void SHMXX_TYPE_NAME::unlock() noexcept
+{
+ SHM_FUN_NAME(unlock)(&impl);
+}
+
+void* SHMXX_TYPE_NAME::ptr() noexcept
+{
+ return SHM_FUN_NAME(ptr)(&impl);
+}