BDE 4.39.x Production Release
Loading...
Searching...
No Matches
bdlcc::StripedUnorderedContainerImpl_RehashBitSetGuard Class Reference

#include <bdlcc_stripedunorderedcontainerimpl.h>

Detailed Description

This class defines a proctor type that attempts to set the rehash bit of a state object, and if successful, clears that bit upon destruction.

See bdlcc_stripedunorderedcontainerimpl

Public Member Functions

 StripedUnorderedContainerImpl_RehashBitSetGuard (bsls::AtomicInt *state_p)
 
 ~StripedUnorderedContainerImpl_RehashBitSetGuard ()
 
bool holdsLock () const
 

Constructor & Destructor Documentation

◆ StripedUnorderedContainerImpl_RehashBitSetGuard()

bdlcc::StripedUnorderedContainerImpl_RehashBitSetGuard::StripedUnorderedContainerImpl_RehashBitSetGuard ( bsls::AtomicInt state_p)
inlineexplicit

Create a StripedUnorderedContainerImpl_RehashBitSetGuard object that attempts to set the rehash bit of the object pointed to by the specified state_p argument. If successful, the rehash bit will be cleared during destruction.

◆ ~StripedUnorderedContainerImpl_RehashBitSetGuard()

bdlcc::StripedUnorderedContainerImpl_RehashBitSetGuard::~StripedUnorderedContainerImpl_RehashBitSetGuard ( )
inline

Unset the rehash bit previously set by this object and destroy this StripedUnorderedContainerImpl_RehashBitSetGuard object.

Member Function Documentation

◆ holdsLock()

bool bdlcc::StripedUnorderedContainerImpl_RehashBitSetGuard::holdsLock ( ) const
inline

Returns true if the constructor successfully set the rehash bit.


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