19 #ifndef PAGESPEED_KERNEL_BASE_NAMED_LOCK_MANAGER_H_
20 #define PAGESPEED_KERNEL_BASE_NAMED_LOCK_MANAGER_H_
26 namespace net_instaweb {
73 virtual bool Held() = 0;
85 virtual NamedLock* CreateNamedLock(
const StringPiece& name) = 0;
virtual void LockTimedWaitStealOld(int64 wait_ms, int64 steal_ms, Function *callback)=0
Non-blocking locking class.
Definition: named_lock_manager.h:31
Definition: named_lock_manager.h:82
virtual ~NamedLock()
Destructors of extending classes must unlock the lock if held on destruct.
Definition: function.h:47
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
virtual void LockTimedWait(int64 wait_ms, Function *callback)=0
virtual GoogleString name() const =0
The name the lock was created with, for debugging/logging purposes.