DD::Image::InterestRatchet Class Reference

List of all members.

Public Member Functions

bool interestedIn (Cache *cache)
void addInterest (Cache *cache)
 ~InterestRatchet ()

Detailed Description

If you create one of these, and pass it to 'Interest' then it will remember which Iops it has previously called addInterest on, and not do re-do these, thus saving time as addInterest involves contention

Interests are removed again when the InterestRatchet is destroyed.


Constructor & Destructor Documentation

InterestRatchet::~InterestRatchet ( )

destructor for InterestRatchet, must call removeInterest on each of the Caches it is maintaining an interest count on