summaryrefslogtreecommitdiffhomepage
path: root/compat/shm.h
diff options
context:
space:
mode:
Diffstat (limited to 'compat/shm.h')
-rw-r--r--compat/shm.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/compat/shm.h b/compat/shm.h
index 61efaf68..5ea6c80a 100644
--- a/compat/shm.h
+++ b/compat/shm.h
@@ -19,6 +19,7 @@
#include <sys/types.h>
#endif
+#include "macros.hpp"
#include "export.hpp"
class OTR_COMPAT_EXPORT shm_wrapper final
@@ -31,10 +32,10 @@ class OTR_COMPAT_EXPORT shm_wrapper final
#endif
public:
- shm_wrapper(const char *shm_name, const char *mutex_name, int map_size);
- ~shm_wrapper();
- bool lock();
- bool unlock();
- bool success();
+ never_inline shm_wrapper(const char *shm_name, const char *mutex_name, int map_size);
+ never_inline ~shm_wrapper();
+ never_inline bool lock();
+ never_inline bool unlock();
+ never_inline bool success();
inline void* ptr() { return mem; }
};