4#include <condition_variable>
29 LMDBEnvironment(
const std::string& directory, uint64_t mapSizeKb, uint32_t maxNumDBs, uint32_t maxNumReaders);
71 std::unique_lock lock(
_lock);
80 std::unique_lock lock(
_lock);
LMDBEnvironment(const LMDBEnvironment &other)=delete
LMDBEnvironment & operator=(const LMDBEnvironment &other)=delete
uint64_t get_data_file_size() const
uint64_t get_map_size() const
ResourceGuard _writeGuard
std::unique_ptr< LMDBEnvironment > Ptr
LMDBEnvironment(LMDBEnvironment &&other)=delete
std::shared_ptr< LMDBEnvironment > SharedPtr
LMDBEnvironment & operator=(LMDBEnvironment &&other)=delete
MDB_env * underlying() const
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
ResourceGuard(uint32_t maxAllowed)
std::condition_variable _condition