diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-01-07 13:15:30 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-01-16 07:48:47 +0100 |
commit | b3da5c6698d4ec39d62062d23f1da79f9c359cdf (patch) | |
tree | 8b74effb405c964653e47a773fb33f7c08c070d0 /compat/shm.hpp | |
parent | fd3eb4515639e000b899544827b5fd4ff9473937 (diff) |
Revert "compat/shm, proto/wine: remove duplication"
This reverts commit bab093ebbe392927a92ef201fe60344d5c1191dd.
Diffstat (limited to 'compat/shm.hpp')
-rw-r--r-- | compat/shm.hpp | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/compat/shm.hpp b/compat/shm.hpp deleted file mode 100644 index 428764e4..00000000 --- a/compat/shm.hpp +++ /dev/null @@ -1,34 +0,0 @@ -/* Copyright (c) 2013 Stanislaw Halik <sthalik@misaki.pl> - - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - */ -#ifndef SHMXX_HEADER_GUARD -#define SHMXX_HEADER_GUARD - -#include "export.hpp" -#include "shm.h" - -#ifndef SHMXX_TYPE_NAME -# define SHMXX_TYPE_NAME mem -#endif - -class OTR_COMPAT_EXPORT SHMXX_TYPE_NAME final -{ - SHM_TYPE_NAME impl; - -public: - SHMXX_TYPE_NAME(const char* shm_name, const char* mutex_name, int map_size); - ~SHMXX_TYPE_NAME(); - - bool success() noexcept; - void* ptr() noexcept; - void lock() noexcept; - void unlock() noexcept; - - SHMXX_TYPE_NAME& operator=(const SHMXX_TYPE_NAME&) = delete; - SHMXX_TYPE_NAME& operator=(SHMXX_TYPE_NAME&&) noexcept; -}; - -#endif // SHMXX_HEADER_GUARD |