lo2k::Thread Class Reference

#include <Lo2kThread.h>

Inherited by MicoleAgentThread, and MicoleBus [private].

List of all members.


Detailed Description

Object encapulsation for windows thread.

Definition at line 43 of file Lo2kThread.h.

Public Member Functions

 Thread ()
 Default constructor.
virtual ~Thread ()
 Default destructor.
threadid start ()
 start the thread
virtual void run ()=0
 run method you need to implement these function if you inherit lo2k.net::Thread this function must be a loop

Static Public Member Functions

static threadid getthreadid ()
 return thread identifier
static void sleep (long milliseconds=1)
 sleep the thread


Constructor & Destructor Documentation

lo2k::Thread::Thread (  )  [inline]

Default constructor.

Definition at line 70 of file Lo2kThread.h.

virtual lo2k::Thread::~Thread (  )  [inline, virtual]

Default destructor.

Definition at line 77 of file Lo2kThread.h.


Member Function Documentation

static threadid lo2k::Thread::getthreadid (  )  [inline, static]

return thread identifier

Returns:
identifier

Definition at line 85 of file Lo2kThread.h.

virtual void lo2k::Thread::run (  )  [pure virtual]

run method you need to implement these function if you inherit lo2k.net::Thread this function must be a loop

Implemented in DServerAgent, MicoleAgentThread, MicoleBus, MouseSenderAgent, NetworkAgent, ServerAgent, and TimerAgent.

static void lo2k::Thread::sleep ( long  milliseconds = 1  )  [inline, static]

sleep the thread

Parameters:
milliseconds milliseconds

Definition at line 98 of file Lo2kThread.h.

threadid lo2k::Thread::start (  )  [inline]

start the thread

Reimplemented in MicoleAgentThread.

Definition at line 110 of file Lo2kThread.h.


The documentation for this class was generated from the following file:
Generated on Tue Oct 16 17:11:24 2007 for Micole by  doxygen 1.4.7