Quick Links:

bal | bbl | bdl | bsl

Public Member Functions

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

#include <bdlcc_cache.h>

List of all members.

Public Member Functions

 Cache_TestUtil (Cache< KEY, VALUE, HASH, EQUAL > &cache)
 ~Cache_TestUtil ()
void lockRead ()
void lockWrite ()
void unlock ()

Detailed Description

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

This class implements a test utility that gives the test driver access to the lock / unlock method of the RW mutex. Its purpose is to allow testing that the locking actually happens as planned.

See Component bdlcc_cache


Constructor & Destructor Documentation

template<class KEY , class VALUE , class HASH , class EQUAL >
bdlcc::Cache_TestUtil< KEY, VALUE, HASH, EQUAL >::Cache_TestUtil ( Cache< KEY, VALUE, HASH, EQUAL > &  cache  )  [explicit]

Create a Cache_TestUtil object to test locking in the specified cache.

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

Destroy this object.


Member Function Documentation

template<class KEY , class VALUE , class HASH , class EQUAL >
void bdlcc::Cache_TestUtil< KEY, VALUE, HASH, EQUAL >::lockRead (  ) 

Call the lockRead method of bdlcc::Cache d_rwlock lock.

template<class KEY , class VALUE , class HASH , class EQUAL >
void bdlcc::Cache_TestUtil< KEY, VALUE, HASH, EQUAL >::lockWrite (  ) 

Call the lockWrite method of bdlcc::Cache d_rwlock lock.

template<class KEY , class VALUE , class HASH , class EQUAL >
void bdlcc::Cache_TestUtil< KEY, VALUE, HASH, EQUAL >::unlock (  ) 

Call the unlock method of bdlcc::Cache d_rwlock lock.


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