Quick Links: |
#include <bdlcc_stripedunorderedcontainerimpl.h>
Public Member Functions | |
StripedUnorderedContainerImpl_TestUtil (StripedUnorderedContainerImpl< KEY, VALUE, HASH, EQUAL > &hash) | |
~StripedUnorderedContainerImpl_TestUtil () | |
void | lockRead (const KEY &key) |
void | lockWrite (const KEY &key) |
void | unlockWrite (const KEY &key) |
void | unlockRead (const KEY &key) |
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.
See Component bdlcc_stripedunorderedcontainerimpl
bdlcc::StripedUnorderedContainerImpl_TestUtil< KEY, VALUE, HASH, EQUAL >::StripedUnorderedContainerImpl_TestUtil | ( | StripedUnorderedContainerImpl< KEY, VALUE, HASH, EQUAL > & | hash | ) | [explicit] |
Create a StripedUnorderedContainerImpl_TestUtil
object to test locking in the specified hash
.
bdlcc::StripedUnorderedContainerImpl_TestUtil< KEY, VALUE, HASH, EQUAL >::~StripedUnorderedContainerImpl_TestUtil | ( | ) |
Destroy this object.
void bdlcc::StripedUnorderedContainerImpl_TestUtil< KEY, VALUE, HASH, EQUAL >::lockRead | ( | const KEY & | key | ) |
Call the lockRead
method of bdlcc::StripedUnorderedContainerImpl
d_locks_p
lock of the specified key
.
void bdlcc::StripedUnorderedContainerImpl_TestUtil< KEY, VALUE, HASH, EQUAL >::lockWrite | ( | const KEY & | key | ) |
Call the lockWrite
method of bdlcc::StripedUnorderedContainerImpl
d_locks_p
lock of the specified key
.
void bdlcc::StripedUnorderedContainerImpl_TestUtil< KEY, VALUE, HASH, EQUAL >::unlockWrite | ( | const KEY & | key | ) |
Call the unlockWrite
method of bdlcc::StripedUnorderedContainerImpl
d_locks_p
lock of the specified key
.
void bdlcc::StripedUnorderedContainerImpl_TestUtil< KEY, VALUE, HASH, EQUAL >::unlockRead | ( | const KEY & | key | ) |
Call the unlockRead
method of bdlcc::StripedUnorderedContainerImpl
d_locks_p
lock of the specified key
.