mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-06 16:56:45 +08:00
add IPC_EXPORT for tls
This commit is contained in:
parent
7982eb94c9
commit
8bc8feb68f
@ -4,6 +4,8 @@
|
|||||||
#include <utility>
|
#include <utility>
|
||||||
#include <limits>
|
#include <limits>
|
||||||
|
|
||||||
|
#include "export.h"
|
||||||
|
|
||||||
namespace ipc {
|
namespace ipc {
|
||||||
namespace tls {
|
namespace tls {
|
||||||
|
|
||||||
@ -14,11 +16,11 @@ enum : key_t {
|
|||||||
invalid_value = (std::numeric_limits<key_t>::max)()
|
invalid_value = (std::numeric_limits<key_t>::max)()
|
||||||
};
|
};
|
||||||
|
|
||||||
key_t create (destructor_t destructor = nullptr);
|
IPC_EXPORT key_t create (destructor_t destructor = nullptr);
|
||||||
void release(key_t key);
|
IPC_EXPORT void release(key_t key);
|
||||||
|
|
||||||
bool set(key_t key, void* ptr);
|
IPC_EXPORT bool set(key_t key, void* ptr);
|
||||||
void* get(key_t key);
|
IPC_EXPORT void* get(key_t key);
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////
|
||||||
/// Thread-local pointer
|
/// Thread-local pointer
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user