38 #ifndef PMEMOBJ_COMMON_HPP 39 #define PMEMOBJ_COMMON_HPP 42 #include "libpmemobj/tx_base.h" 61 conditional_add_to_tx(
const T *that)
64 if (!pmemobj_pool_by_ptr(that))
67 if (pmemobj_tx_stage() != TX_STAGE_WORK)
70 if (pmemobj_tx_add_range_direct(that,
sizeof(*that)))
71 throw transaction_error(
"Could not add an object to the" 82 return typeid(T).hash_code();
Definition: condition_variable.hpp:48