Test utility exposing stripe lock/unlock for the test driver.

Synopsis

Declared in <bdlcc_stripedunorderedcontainerimpl.h>

template<
    class KEY,
    class VALUE,
    class HASH = bsl::hash<KEY>,
    class EQUAL = bsl::equal_to<KEY>>
class StripedUnorderedContainerImpl_TestUtil;

Description

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.

Member Functions

Name

Description

StripedUnorderedContainerImpl_TestUtil [constructor]

Create a test utility for locking in the specified hash.

lockRead

Acquire a read lock on the stripe for the specified key.

lockWrite

Acquire a write lock on the stripe for the specified key.

unlockRead

Release the read lock on the stripe for the specified key.

unlockWrite

Release the write lock on the stripe for the specified key.

Created with MrDocs