diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-01-23 15:22:20 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-01-23 15:22:20 +0100 |
commit | e719ab6cf5efef6deef0848a666e7603a170f775 (patch) | |
tree | 4d3587a80feedc1e4f9fe48ef6891122e5d781e1 /compat/shm.h | |
parent | 01a1f8871fb62a2997d2bac64a1fd4b41e8957f7 (diff) |
compat/shm: add never_inline
Also, move out of header in `struct secattr'.
Diffstat (limited to 'compat/shm.h')
-rw-r--r-- | compat/shm.h | 11 |
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; } }; |