18#ifndef _DECAF_UTIL_ABSTRACTMAP_H_
19#define _DECAF_UTIL_ABSTRACTMAP_H_
58 template<
typename K,
typename V>
81 return mutex.tryLock();
92 virtual void wait(
long long millisecs) {
93 mutex.wait(millisecs);
96 virtual void wait(
long long millisecs,
int nanos) {
97 mutex.wait(millisecs, nanos);
AbstractMap(const AbstractMap< K, V > &map DECAF_UNUSED)
Definition AbstractMap.h:70
virtual void unlock()
Unlocks the object.
Definition AbstractMap.h:84
virtual void lock()
Locks the object.
Definition AbstractMap.h:76
virtual void notify()
Signals a waiter on this object that it can now wake up and continue.
Definition AbstractMap.h:100
AbstractMap()
Definition AbstractMap.h:66
virtual void wait(long long millisecs)
Waits on a signal from this object, which is generated by a call to Notify.
Definition AbstractMap.h:92
virtual void notifyAll()
Signals the waiters on this object that it can now wake up and continue.
Definition AbstractMap.h:104
virtual ~AbstractMap()
Definition AbstractMap.h:72
virtual bool tryLock()
Attempts to Lock the object, if the lock is already held by another thread than this method returns f...
Definition AbstractMap.h:80
AbstractMap(const Map< K, V > &map DECAF_UNUSED)
Definition AbstractMap.h:68
virtual void wait()
Waits on a signal from this object, which is generated by a call to Notify.
Definition AbstractMap.h:88
virtual void wait(long long millisecs, int nanos)
Waits on a signal from this object, which is generated by a call to Notify.
Definition AbstractMap.h:96
util::concurrent::Mutex mutex
Definition AbstractMap.h:62
An object that maps keys to values.
Definition Map.h:88
Map()
Default constructor - does nothing.
Definition Map.h:94
Mutex object that offers recursive support on all platforms as well as providing the ability to use t...
Definition Mutex.h:39
Definition AbstractCollection.h:33
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition AprPool.h:25