#include <Leases.H>
Public Member Functions | |
Leases (Basics::mutex *mu, int timeout, bool debug=false) throw () | |
BitVector * | LeaseSet () const throw () |
void | NewLease (int li) throw () |
void | RenewLease (int li) throw (NoLease) |
bool | IsLeased (int li) throw () |
void | DisableExpiration () throw () |
void | EnableExpiration () throw () |
bool | ExpirationIsEnabled () const throw () |
void | Debug (std::ostream &os) const throw () |
Private Member Functions | |
void | Expire () throw () |
Leases (const Leases &) | |
Private Attributes | |
int | timeout |
bool | debug |
Basics::mutex * | mu |
bool | expiring |
BitVector * | oldLs |
BitVector * | newLs |
Friends | |
void * | Leases_TimeoutProc (void *) throw () |
Classes | |
class | NoLease |
|
Definition at line 51 of file Leases.C. References Basics::thread::fork_and_detach(), Leases_TimeoutProc(), mu, and NEW. |
|
|
|
Definition at line 74 of file Leases.C. Referenced by Expire(). |
|
Definition at line 77 of file Leases.H. References expiring. |
|
Definition at line 82 of file Leases.H. References expiring. Referenced by CacheS::ResumeLeaseExp(). |
|
Definition at line 86 of file Leases.H. References expiring. |
|
Definition at line 80 of file Leases.C. References Debug(), Debug::Lock(), Basics::mutex::lock(), mu, newLs, oldLs, BitVector::ResetAll(), Debug::Timestamp(), Basics::mutex::unlock(), and Debug::Unlock(). Referenced by Leases_TimeoutProc(). |
|
Definition at line 72 of file Leases.H. References newLs, oldLs, and BitVector::Read(). Referenced by RenewLease(). |
|
Definition at line 64 of file Leases.C. References NEW_CONSTR. Referenced by CacheS::GetLeases(). |
|
Definition at line 61 of file Leases.H. References newLs, and BitVector::Set(). Referenced by RenewLease(). |
|
Definition at line 65 of file Leases.H. References IsLeased(), and NewLease(). |
|
|
|
|
|
Definition at line 103 of file Leases.H. Referenced by DisableExpiration(), EnableExpiration(), and ExpirationIsEnabled(). |
|
Definition at line 102 of file Leases.H. Referenced by Expire(). |
|
Definition at line 104 of file Leases.H. Referenced by Expire(), IsLeased(), and NewLease(). |
|
Definition at line 104 of file Leases.H. Referenced by Expire(), and IsLeased(). |
|
Definition at line 98 of file Leases.H. Referenced by Leases_TimeoutProc(). |