19 #ifndef PAGESPEED_KERNEL_BASE_MEM_LOCK_STATE_H_
20 #define PAGESPEED_KERNEL_BASE_MEM_LOCK_STATE_H_
28 namespace net_instaweb {
61 typedef std::set<MemLock*, MemLockState::Comparator> WakeupOrderedLockSet;
62 typedef std::set<MemLock*, MemLockState::StealComparator> StealOrderedLockSet;
107 static int Compare(
const T& a,
const T& b) {
126 void MemLockManagerDestroyed();
131 void RescheduleLock(int64 held_lock_grant_time_ms,
MemLock* lock);
135 WakeupOrderedLockSet pending_locks_;
136 StealOrderedLockSet pending_steals_;
Definition: mem_lock_state.h:51
Captures and maintains scheduling order for locks with a common name.
Definition: mem_lock_state.h:34
Definition: mem_lock.h:31
void StealLock(MemLock *lock)
Definition: mem_lock_manager.h:41
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
bool GrabLock(MemLock *lock)
bool IsHeldInOrderedSet(MemLock *lock) const
void ScheduleLock(MemLock *lock)
Definition: mem_lock_state.h:57
MemLock * CreateLock(int64 sequence)
void UnscheduleLock(MemLock *lock)
void RemoveLock(MemLock *lock)
Called when lock is deleted.