PMDK C++ bindings
1.13.0-git107.g7e59f08f
This is the C++ bindings documentation for PMDK's libpmemobj.
|
This structure is used for assigning unique thread ids so that those ids will be reused in case of thread exit. More...
#include <libpmemobj++/detail/enumerable_thread_specific.hpp>
Public Member Functions | |
id_manager (const id_manager &)=delete | |
id_manager & | operator= (const id_manager &)=delete |
size_t | get () |
Obtain unique thread id. More... | |
void | release (size_t id) |
Releases thread id so that it can be reused by other threads. More... | |
This structure is used for assigning unique thread ids so that those ids will be reused in case of thread exit.
Ids will be between 0 and N where N is max number of threads.
|
inline |
Obtain unique thread id.
|
inline |
Releases thread id so that it can be reused by other threads.