This class implements a test utility that gives the test driver access to the lock / unlock method of the Read/Write mutex. Its purpose is to allow testing that the locking actually happens as planned.
Declared in <bdlcc_stripedunorderedcontainerimpl.h>
template<
class KEY,
class VALUE,
class HASH = bsl::hash<KEY>,
class EQUAL = bsl::equal_to<KEY>>
class StripedUnorderedContainerImpl_TestUtil;
| Name | Description |
|---|---|
StripedUnorderedContainerImpl_TestUtil [constructor] | Create a StripedUnorderedContainerImpl_TestUtil object to test locking in the specified hash. |
lockRead | Call the lockRead method of bdlcc::StripedUnorderedContainerImpl d_locks_p lock of the specified key. |
lockWrite | Call the lockWrite method of bdlcc::StripedUnorderedContainerImpl d_locks_p lock of the specified key. |
unlockRead | Call the unlockRead method of bdlcc::StripedUnorderedContainerImpl d_locks_p lock of the specified key. |
unlockWrite | Call the unlockWrite method of bdlcc::StripedUnorderedContainerImpl d_locks_p lock of the specified key. |