Intel(R) Threading Building Blocks Doxygen Documentation
version 4.2.3
|
bucket accessor is to find, rehash, acquire a lock, and access a bucket More...
#include <concurrent_hash_map.h>
Public Member Functions | |
bucket_accessor (concurrent_hash_map *base, const hashcode_t h, bool writer=false) | |
void | acquire (concurrent_hash_map *base, const hashcode_t h, bool writer=false) |
find a bucket by masked hashcode, optionally rehash, and acquire the lock More... | |
bool | is_writer () |
check whether bucket is locked for write More... | |
bucket * | operator() () |
get bucket pointer More... | |
Private Attributes | |
bucket * | my_b |
bucket accessor is to find, rehash, acquire a lock, and access a bucket
Definition at line 698 of file concurrent_hash_map.h.
|
inline |
Definition at line 701 of file concurrent_hash_map.h.
References tbb::acquire.
|
inline |
find a bucket by masked hashcode, optionally rehash, and acquire the lock
Definition at line 703 of file concurrent_hash_map.h.
References __TBB_ASSERT, tbb::spin_rw_mutex_v3::scoped_lock::acquire(), tbb::interface5::internal::hash_map_base::get_bucket(), tbb::internal::itt_load_word_with_acquire(), tbb::interface5::internal::hash_map_base::bucket::mutex, tbb::interface5::internal::hash_map_base::bucket::node_list, tbb::interface5::concurrent_hash_map< Key, T, HashCompare, Allocator >::rehash_bucket(), and tbb::interface5::internal::rehash_req.
|
inline |
check whether bucket is locked for write
Definition at line 715 of file concurrent_hash_map.h.
References tbb::spin_rw_mutex_v3::scoped_lock::is_writer.
Referenced by tbb::interface5::concurrent_hash_map< Key, T, HashCompare, Allocator >::erase(), tbb::interface5::concurrent_hash_map< Key, T, HashCompare, Allocator >::lookup(), and tbb::interface5::concurrent_hash_map< Key, T, HashCompare, Allocator >::rehash_bucket().
|
inline |
get bucket pointer
Definition at line 717 of file concurrent_hash_map.h.
|
private |
Definition at line 699 of file concurrent_hash_map.h.