Coda Distributed File System
Macros | Typedefs | Functions
timer.c File Reference
#include <sys/time.h>
#include <stdlib.h>
#include <assert.h>
#include <lwp/lwp.h>
#include <lwp/timer.h>
#include "lwp.private.h"
Include dependency graph for timer.c:

Macros

#define DEBUG(...)
 
#define expiration   TotalTime
 
#define MILLION   1000000
 

Typedefs

typedef unsigned char bool
 

Functions

int TM_eql (struct timeval *t1, struct timeval *t2)
 
int TM_Init (struct TM_Elem **list)
 
int TM_Final (struct TM_Elem **list)
 
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)
 

Macro Definition Documentation

◆ DEBUG

#define DEBUG (   ...)

◆ expiration

#define expiration   TotalTime

◆ MILLION

#define MILLION   1000000

Typedef Documentation

◆ bool

typedef unsigned char bool

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)