CernVM-FS  2.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FuseInvalidator::Handle Class Reference

#include <fuse_evict.h>

Inheritance diagram for FuseInvalidator::Handle:
Collaboration diagram for FuseInvalidator::Handle:

Public Member Functions

 Handle (unsigned timeout_s)
 
 ~Handle ()
 
bool IsDone () const
 
void Reset ()
 
void WaitFor ()
 

Private Member Functions

void SetDone ()
 
- Private Member Functions inherited from SingleCopy
 SingleCopy ()
 

Private Attributes

unsigned timeout_s_
 
atomic_int32status_
 

Friends

class FuseInvalidator
 

Detailed Description

Used to track the progress of an "invalidation" request. The invalidator will evict cache entries for a duration given by the timeout. For very large caches, active eviction can take longer than the timeout.

The caller needs to keep Handle active until IsDone() is true;

Definition at line 47 of file fuse_evict.h.

Constructor & Destructor Documentation

FuseInvalidator::Handle::Handle ( unsigned  timeout_s)
explicit

Definition at line 26 of file fuse_evict.cc.

FuseInvalidator::Handle::~Handle ( )

Definition at line 34 of file fuse_evict.cc.

Member Function Documentation

bool FuseInvalidator::Handle::IsDone ( ) const
inline

Definition at line 53 of file fuse_evict.h.

Referenced by FuseRemounter::TryFinish().

Here is the caller graph for this function:

void FuseInvalidator::Handle::Reset ( )
inline

Definition at line 54 of file fuse_evict.h.

void FuseInvalidator::Handle::SetDone ( )
inlineprivate

Definition at line 58 of file fuse_evict.h.

Referenced by FuseInvalidator::MainInvalidator().

Here is the caller graph for this function:

void FuseInvalidator::Handle::WaitFor ( )

Definition at line 39 of file fuse_evict.cc.

Here is the call graph for this function:

Friends And Related Function Documentation

friend class FuseInvalidator
friend

Definition at line 48 of file fuse_evict.h.

Member Data Documentation

atomic_int32* FuseInvalidator::Handle::status_
private

Definition at line 61 of file fuse_evict.h.

Referenced by Handle(), IsDone(), Reset(), and SetDone().

unsigned FuseInvalidator::Handle::timeout_s_
private

Definition at line 60 of file fuse_evict.h.

Referenced by FuseInvalidator::MainInvalidator().


The documentation for this class was generated from the following files: