NOVA User-Level Environment  Version testbox/changed-memory-timing-317-g320d8b5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TimeoutList< ENTRIES, DATA > Class Template Reference

Keeping track of the timeouts. More...

#include <timer.h>

Classes

class  TimeoutEntry

Public Member Functions

unsigned alloc (DATA *_data=0)
 Alloc a new timeout object.
unsigned dealloc (unsigned nr, bool withcancel=false)
 Dealloc a timeout object.
int cancel (unsigned nr)
 Cancel a programmed timeout.
int request (unsigned nr, timevalue to)
 Request a new timeout.
unsigned trigger (timevalue now, DATA **data=0)
 Get the head of the queue.
timevalue timeout ()
void init ()

Private Attributes

TimeoutEntry _entries [ENTRIES]

Detailed Description

template<unsigned ENTRIES, typename DATA>
class TimeoutList< ENTRIES, DATA >

Keeping track of the timeouts.

Member Function Documentation

template<unsigned ENTRIES, typename DATA>
unsigned TimeoutList< ENTRIES, DATA >::alloc ( DATA *  _data = 0)
inline

Alloc a new timeout object.

template<unsigned ENTRIES, typename DATA>
int TimeoutList< ENTRIES, DATA >::cancel ( unsigned  nr)
inline

Cancel a programmed timeout.

template<unsigned ENTRIES, typename DATA>
unsigned TimeoutList< ENTRIES, DATA >::dealloc ( unsigned  nr,
bool  withcancel = false 
)
inline

Dealloc a timeout object.

template<unsigned ENTRIES, typename DATA>
void TimeoutList< ENTRIES, DATA >::init ( )
inline
template<unsigned ENTRIES, typename DATA>
int TimeoutList< ENTRIES, DATA >::request ( unsigned  nr,
timevalue  to 
)
inline

Request a new timeout.

template<unsigned ENTRIES, typename DATA>
timevalue TimeoutList< ENTRIES, DATA >::timeout ( )
inline
template<unsigned ENTRIES, typename DATA>
unsigned TimeoutList< ENTRIES, DATA >::trigger ( timevalue  now,
DATA **  data = 0 
)
inline

Get the head of the queue.

Member Data Documentation

template<unsigned ENTRIES, typename DATA>
TimeoutEntry TimeoutList< ENTRIES, DATA >::_entries[ENTRIES]
private

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