Coda Distributed File System
Classes | Macros | Functions
timer.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  TM_Elem
 

Macros

#define FOR_ALL_ELTS(var, list, body)
 

Functions

void TM_Insert (struct TM_Elem *tlistPtr, struct TM_Elem *elem)
 
void TM_Remove (struct TM_Elem *tlistPtr, struct TM_Elem *elem)
 
int TM_Rescan (struct TM_Elem *tlist)
 
struct TM_ElemTM_GetExpired (struct TM_Elem *tlist)
 
struct TM_ElemTM_GetEarliest (struct TM_Elem *tlist)
 
int TM_eql (struct timeval *t1, struct timeval *t2)
 
int TM_Init (struct TM_Elem **list)
 
int TM_Final (struct TM_Elem **list)
 

Macro Definition Documentation

◆ FOR_ALL_ELTS

#define FOR_ALL_ELTS (   var,
  list,
  body 
)
Value:
{ \
struct TM_Elem *_LIST_, *var, *_NEXT_; \
_LIST_ = (list); \
for (var = _LIST_->Next; var != _LIST_; var = _NEXT_) { \
_NEXT_ = var->Next; \
body \
} \
}
command_t list[]
Definition: repair.cc:29
Definition: timer.h:47
struct TM_Elem * Next
Definition: timer.h:48

Function Documentation

◆ TM_eql()

int TM_eql ( struct timeval *  t1,
struct timeval *  t2 
)

◆ TM_Final()

int TM_Final ( struct TM_Elem **  list)

◆ TM_GetEarliest()

struct TM_Elem * TM_GetEarliest ( struct TM_Elem tlist)

◆ TM_GetExpired()

struct TM_Elem * TM_GetExpired ( struct TM_Elem tlist)

◆ TM_Init()

int TM_Init ( struct TM_Elem **  list)

◆ TM_Insert()

void TM_Insert ( struct TM_Elem tlistPtr,
struct TM_Elem elem 
)

◆ TM_Remove()

void TM_Remove ( struct TM_Elem tlistPtr,
struct TM_Elem elem 
)

◆ TM_Rescan()

int TM_Rescan ( struct TM_Elem tlist)