18#ifndef _DECAF_UTIL_CONCURRENT_LOCK_H_
19#define _DECAF_UTIL_CONCURRENT_LOCK_H_
A wrapper class around a given synchronization mechanism that provides automatic release upon destruc...
Definition: Lock.h:34
bool isLocked() const
Indicates whether or not the object is locked.
Definition: Lock.h:86
void unlock()
Unlocks the object if it is already locked, otherwise a call to this method has no effect.
void lock()
Locks the object.
virtual ~Lock()
Destructor - Unlocks the object if it is locked.
Lock(Synchronizable *object, const bool intiallyLocked=true)
Constructor - initializes the object member and locks the object if desired.
The interface for all synchronizable objects (that is, objects that can be locked and unlocked).
Definition: Synchronizable.h:37
#define DECAF_API
Definition: Config.h:29
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition: AprPool.h:25