|
BDE 4.14.0 Production release
|
#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. | |
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
|
inlineexplicit |
Create a Cache_TestUtil object to test locking in the specified cache.
|
default |
|
inline |
|
inline |
|
inline |