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

#include <bdlcc_cache.h>

Public Member Functions

 Cache_TestUtil (Cache< KEY, VALUE, HASH, EQUAL > &cache)
 
 ~Cache_TestUtil ()=default
 Destroy this object.
 
void lockRead ()
 Call the lockRead method of bdlcc::Cache d_rwlock lock.
 
void lockWrite ()
 Call the lockWrite method of bdlcc::Cache d_rwlock lock.
 
void unlock ()
 Call the unlock method of bdlcc::Cache d_rwlock lock.
 

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 bdlcc_cache

Constructor & Destructor Documentation

◆ Cache_TestUtil()

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

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

◆ ~Cache_TestUtil()

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

Member Function Documentation

◆ lockRead()

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

◆ lockWrite()

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

◆ unlock()

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

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