PMDK C++ bindings  1.12
This is the C++ bindings documentation for PMDK's libpmemobj.
Public Member Functions | List of all members
pmem::obj::concurrent_hash_map< Key, T, Hash, KeyEqual, MutexType, ScopedLockType >::mutex_vector Class Reference

Vector of locks to be unlocked at the destruction time. More...

#include <libpmemobj++/container/concurrent_hash_map.hpp>

Public Member Functions

bucket * push_and_try_lock (concurrent_hash_map *base, hashcode_type h)
 Save pointer to the lock in the vector and lock it. More...
 

Detailed Description

template<typename Key, typename T, typename Hash, typename KeyEqual, typename MutexType, typename ScopedLockType>
class pmem::obj::concurrent_hash_map< Key, T, Hash, KeyEqual, MutexType, ScopedLockType >::mutex_vector

Vector of locks to be unlocked at the destruction time.

MutexType - type of mutex used by buckets.

Member Function Documentation

◆ push_and_try_lock()

template<typename Key, typename T, typename Hash, typename KeyEqual, typename MutexType, typename ScopedLockType>
bucket* pmem::obj::concurrent_hash_map< Key, T, Hash, KeyEqual, MutexType, ScopedLockType >::mutex_vector::push_and_try_lock ( concurrent_hash_map base,
hashcode_type  h 
)
inline

Save pointer to the lock in the vector and lock it.


The documentation for this class was generated from the following file: