BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bdlcc::StripedUnorderedContainerImpl_TestUtil< KEY, VALUE, HASH, EQUAL > Class Template Reference

#include <bdlcc_stripedunorderedcontainerimpl.h>

Public Member Functions

 StripedUnorderedContainerImpl_TestUtil (StripedUnorderedContainerImpl< KEY, VALUE, HASH, EQUAL > &hash)
 
 ~StripedUnorderedContainerImpl_TestUtil ()=default
 
void lockRead (const KEY &key)
 
void lockWrite (const KEY &key)
 
void unlockWrite (const KEY &key)
 
void unlockRead (const KEY &key)
 

Detailed Description

template<class KEY, class VALUE, class HASH, class EQUAL>
class bdlcc::StripedUnorderedContainerImpl_TestUtil< KEY, VALUE, HASH, EQUAL >

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 bdlcc_stripedunorderedcontainerimpl

Constructor & Destructor Documentation

◆ StripedUnorderedContainerImpl_TestUtil()

template<class KEY , class VALUE , class HASH , class EQUAL >
bdlcc::StripedUnorderedContainerImpl_TestUtil< KEY, VALUE, HASH, EQUAL >::StripedUnorderedContainerImpl_TestUtil ( StripedUnorderedContainerImpl< KEY, VALUE, HASH, EQUAL > &  hash)
inlineexplicit

Create a StripedUnorderedContainerImpl_TestUtil object to test locking in the specified hash.

◆ ~StripedUnorderedContainerImpl_TestUtil()

template<class KEY , class VALUE , class HASH , class EQUAL >
bdlcc::StripedUnorderedContainerImpl_TestUtil< KEY, VALUE, HASH, EQUAL >::~StripedUnorderedContainerImpl_TestUtil ( )
default

Member Function Documentation

◆ lockRead()

template<class KEY , class VALUE , class HASH , class EQUAL >
void bdlcc::StripedUnorderedContainerImpl_TestUtil< KEY, VALUE, HASH, EQUAL >::lockRead ( const KEY &  key)
inline

Call the lockRead method of bdlcc::StripedUnorderedContainerImpl d_locks_p lock of the specified key.

◆ lockWrite()

template<class KEY , class VALUE , class HASH , class EQUAL >
void bdlcc::StripedUnorderedContainerImpl_TestUtil< KEY, VALUE, HASH, EQUAL >::lockWrite ( const KEY &  key)
inline

Call the lockWrite method of bdlcc::StripedUnorderedContainerImpl d_locks_p lock of the specified key.

◆ unlockRead()

template<class KEY , class VALUE , class HASH , class EQUAL >
void bdlcc::StripedUnorderedContainerImpl_TestUtil< KEY, VALUE, HASH, EQUAL >::unlockRead ( const KEY &  key)
inline

Call the unlockRead method of bdlcc::StripedUnorderedContainerImpl d_locks_p lock of the specified key.

◆ unlockWrite()

template<class KEY , class VALUE , class HASH , class EQUAL >
void bdlcc::StripedUnorderedContainerImpl_TestUtil< KEY, VALUE, HASH, EQUAL >::unlockWrite ( const KEY &  key)
inline

Call the unlockWrite method of bdlcc::StripedUnorderedContainerImpl d_locks_p lock of the specified key.


The documentation for this class was generated from the following file: