Collaboration diagram for atomic_thread_map_t:
Each smthread_t has a fingerprint. This is used by the deadlock detector. The fingerprint is a bitmap; each thread's bitmap is unique, the deadlock detector ORs fingerprints together to make a "digest" of the waits-for-map. Rather than have fingerprints associated with transactions, we associate them with threads.
This class provides synchronization (protection) for updating the map.
Definition at line 142 of file smthread.h.
Public Member Functions | |
bool | has_reader () const |
bool | has_writer () const |
void | lock_for_read () const |
void | lock_for_write () |
void | unlock_reader () const |
void | unlock_writer () |
atomic_thread_map_t () | |
~atomic_thread_map_t () | |
atomic_thread_map_t & | operator= (const atomic_thread_map_t &other) |