Quick Links:

bal | bbl | bdl | bsl

Public Member Functions

bdlcc::StripedUnorderedContainerImpl_TestUtil< KEY, VALUE, HASH, EQUAL > Class Template Reference

#include <bdlcc_stripedunorderedcontainerimpl.h>

List of all members.

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)

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 Component bdlcc_stripedunorderedcontainerimpl


Constructor & Destructor Documentation

template<class KEY , class VALUE , class HASH , class EQUAL >
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.

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

Destroy this object.


Member Function Documentation

template<class KEY , class VALUE , class HASH , class EQUAL >
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.

template<class KEY , class VALUE , class HASH , class EQUAL >
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.

template<class KEY , class VALUE , class HASH , class EQUAL >
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.

template<class KEY , class VALUE , class HASH , class EQUAL >
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.


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