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 700 of file concurrent_hash_map.h.
|
inline |
Definition at line 703 of file concurrent_hash_map.h.
References tbb::interface5::concurrent_hash_map< Key, T, HashCompare, Allocator >::bucket_accessor::acquire(), and h.
|
inline |
find a bucket by masked hashcode, optionally rehash, and acquire the lock
Definition at line 705 of file concurrent_hash_map.h.
References __TBB_ASSERT, tbb::acquire, tbb::interface5::internal::hash_map_base::get_bucket(), h, tbb::internal::itt_load_word_with_acquire(), tbb::interface5::internal::hash_map_base::bucket::mutex, tbb::interface5::concurrent_hash_map< Key, T, HashCompare, Allocator >::bucket_accessor::my_b, 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.
Referenced by tbb::interface5::concurrent_hash_map< Key, T, HashCompare, Allocator >::bucket_accessor::bucket_accessor().
|
inline |
check whether bucket is locked for write
Definition at line 717 of file concurrent_hash_map.h.
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 719 of file concurrent_hash_map.h.
References tbb::interface5::concurrent_hash_map< Key, T, HashCompare, Allocator >::bucket_accessor::my_b.
|
private |