Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

Timeout Class Reference

#include <timeout.h>

Inheritance diagram for Timeout:

Deadline_timeout IPC_timeout Timeslice_timeout List of all members.

Public Member Functions

 Timeout ()
 Timeout constructor.
void reset ()
bool is_set ()
 Check if timeout is set.
bool has_hit ()
 Check if timeout has hit.
void set (Unsigned64 clock)
void set_again ()
Signed64 get_timeout ()
 Return remaining time of timeout.

Static Public Member Functions

static bool do_timeouts ()
static Timeoutget_first_timeout ()

Protected Attributes

Unsigned64 _wakeup
 Absolute system time we want to be woken up at.

Private Member Functions

 Timeout (const Timeout &)
 Default copy constructor (is undefined).
void enqueue ()
 Enqueue a new timeout.
bool dequeue ()
 Dequeue an expired timeout.
virtual bool expired ()=0

Private Attributes

Timeout_next
 Next/Previous Timeout in timer list.
Timeout_prev
 Next/Previous Timeout in timer list.
struct {
   bool   set: 1
   bool   hit: 1
   unsigned   res: 6
_flags

Static Private Attributes

static Timeoutfirst_timeout = 0

Friends

class Jdb_timeout_list
class Jdb_list_timeouts

Constructor & Destructor Documentation

Timeout::Timeout  )  [inline]
 

Timeout constructor.

Timeout::Timeout const Timeout  )  [private]
 

Default copy constructor (is undefined).


Member Function Documentation

bool Timeout::dequeue  )  [inline, private]
 

Dequeue an expired timeout.

Returns:
true if a reschedule is necessary, false otherwise.

bool Timeout::do_timeouts  )  [inline, static]
 

void Timeout::enqueue  )  [inline, private]
 

Enqueue a new timeout.

virtual bool Timeout::expired  )  [private, pure virtual]
 

Implemented in Deadline_timeout, IPC_timeout, and Timeslice_timeout.

Timeout * Timeout::get_first_timeout  )  [inline, static]
 

Signed64 Timeout::get_timeout  )  [inline]
 

Return remaining time of timeout.

bool Timeout::has_hit  )  [inline]
 

Check if timeout has hit.

bool Timeout::is_set  )  [inline]
 

Check if timeout is set.

void Timeout::reset  )  [inline]
 

void Timeout::set Unsigned64  clock  ) 
 

void Timeout::set_again  )  [inline]
 


Friends And Related Function Documentation

friend class Jdb_list_timeouts [friend]
 

Reimplemented in Deadline_timeout, and IPC_timeout.

friend class Jdb_timeout_list [friend]
 


Member Data Documentation

struct { ... } Timeout::_flags [private]
 

Timeout* Timeout::_next [private]
 

Next/Previous Timeout in timer list.

Timeout * Timeout::_prev [private]
 

Next/Previous Timeout in timer list.

Unsigned64 Timeout::_wakeup [protected]
 

Absolute system time we want to be woken up at.

Timeout * Timeout::first_timeout = 0 [static, private]
 

bool Timeout::hit [private]
 

unsigned Timeout::res [private]
 

void Timeout::set [inline, private]
 


The documentation for this class was generated from the following files:
Generated on Mon Sep 26 14:20:17 2005 for Fiasco by  doxygen 1.4.2