8#ifndef INCLUDED_BSLMT_METEREDMUTEX
9#define INCLUDED_BSLMT_METEREDMUTEX
207#include <bslscm_version.h>
310: d_lastResetTime(
bsls::TimeUtil::getTimer())
326 d_waitTime += (d_startHoldTime - t1);
333 int returnStatus = d_mutex.
tryLock();
335 d_waitTime += t2 - t1;
336 if (returnStatus == 0) {
337 d_startHoldTime = t2;
359 return d_lastResetTime;
Definition bslmt_meteredmutex.h:229
~MeteredMutex()
Destroy this metered mutex.
Definition bslmt_meteredmutex.h:315
bsls::Types::Int64 waitTime() const
Definition bslmt_meteredmutex.h:363
bsls::Types::Int64 lastResetTime() const
Definition bslmt_meteredmutex.h:357
void lock()
Definition bslmt_meteredmutex.h:321
bsls::Types::Int64 holdTime() const
Definition bslmt_meteredmutex.h:351
MeteredMutex()
Create a metered mutex in the unlocked state.
Definition bslmt_meteredmutex.h:309
int tryLock()
Definition bslmt_meteredmutex.h:330
void unlock()
Definition bslmt_meteredmutex.h:343
Definition bslmt_mutex.h:315
void lock()
Definition bslmt_mutex.h:392
int tryLock()
Definition bslmt_mutex.h:404
void unlock()
Definition bslmt_mutex.h:410
Definition bsls_atomic.h:892
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
Definition bslmt_barrier.h:344
Definition bdlt_iso8601util.h:691
static Types::Int64 getTimer()
long long Int64
Definition bsls_types.h:132