IdleMessageLoop_t Class Reference

Message loop for servicing idle tasks. More...

#include <UTIdleTask.h>

Inheritance diagram for IdleMessageLoop_t:
MessageLoop_t Thread_t BTreeNode_t< MessageLoop_t, MessageLoop_t * > LinkedListNode_t< Thread_t >

List of all members.

Public Member Functions

 IdleMessageLoop_t ()
 ~IdleMessageLoop_t ()
void AddIdleTask (IdleTask_t *task)
void RemoveIdleTask (IdleTask_t *task)

Detailed Description

Message loop for servicing idle tasks. A single, global idle task message loop is provided by the UT library as g_idle_message_loop.

Definition at line 104 of file UTIdleTask.h.


Constructor & Destructor Documentation

IdleMessageLoop_t::IdleMessageLoop_t (  ) 

Constructor. A single, global idle task message loop is provided by the UT library as g_idle_message_loop.

IdleMessageLoop_t::~IdleMessageLoop_t (  ) 

Destructor. All idle tasks must have been removed before main returns. Consequently, no global object can rely on its destructor to remove an idle task.


Member Function Documentation

void IdleMessageLoop_t::AddIdleTask ( IdleTask_t task  ) 

Adds a task to be performed at idle. It must be removed from the idle message loop before main returns. Consequently, no global object can rely on its destructor to remove an idle task.

void IdleMessageLoop_t::RemoveIdleTask ( IdleTask_t task  ) 

Removes an idle task. This can be called from within the idle thread (a task removing itself) or from outside by the owner of the idle task.


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

Generated on Tue Dec 14 22:35:06 2010 for UT library by  doxygen 1.6.1