NLMISC::IThread Class Reference

#include <thread.h>


Detailed Description

Thread base interface, must be implemented for all OS
Author:
Vianney Lecroart

Nevrax France

Date:
2000

Definition at line 86 of file thread.h.

Public Member Functions

virtual uint64 getCPUMask ()=0
virtual IRunnablegetRunnable ()=0
 Return a pointer to the runnable object.

virtual std::string getUserName ()=0
virtual bool setCPUMask (uint64 cpuMask)=0
virtual void start ()=0
virtual void terminate ()=0
virtual void wait ()=0
virtual ~IThread ()

Static Public Member Functions

IThreadcreate (IRunnable *runnable)
IThreadgetCurrentThread ()


Constructor & Destructor Documentation

virtual NLMISC::IThread::~IThread  )  [inline, virtual]
 

Definition at line 103 of file thread.h.

00103 { }


Member Function Documentation

IThread* NLMISC::IThread::create IRunnable runnable  )  [static]
 

Create a new thread. Implemented in the derived class.

virtual uint64 NLMISC::IThread::getCPUMask  )  [pure virtual]
 

Get the CPU mask of this thread. Thread must have been started before. The mask should be a subset of the CPU mask returned by IProcess::getCPUMask() thread process. Not implemented under Linux.

Referenced by NL3D::CZoneLighter::light().

IThread* NLMISC::IThread::getCurrentThread  )  [static]
 

Return a pointer on the current thread. Implemented in the derived class. Not implemented under Linux.

virtual IRunnable* NLMISC::IThread::getRunnable  )  [pure virtual]
 

Return a pointer to the runnable object.

Referenced by NLNET::CBufServer::~CBufServer().

virtual std::string NLMISC::IThread::getUserName  )  [pure virtual]
 

Get the thread user name. Notimplemented under linux, under windows return the name of the logon user.

virtual bool NLMISC::IThread::setCPUMask uint64  cpuMask  )  [pure virtual]
 

Set the CPU mask of this thread. Thread must have been started before. The mask must be a subset of the CPU mask returned by IProcess::getCPUMask() thread process. Not implemented under Linux.

Referenced by NL3D::CZoneLighter::light().

virtual void NLMISC::IThread::start  )  [pure virtual]
 

Referenced by NLNET::CBufClient::connect(), NLMISC::CWindowDisplayer::create(), NLMISC::CTaskManager::CTaskManager(), NLNET::CBufServer::init(), NL3D::CZoneLighter::light(), and NL3D::CZoneLighter::lightShapes().

virtual void NLMISC::IThread::terminate  )  [pure virtual]
 

virtual void NLMISC::IThread::wait  )  [pure virtual]
 

Referenced by NLNET::CBufClient::~CBufClient(), NLNET::CBufServer::~CBufServer(), and NLMISC::CWindowDisplayer::~CWindowDisplayer().


The documentation for this class was generated from the following file:
Generated on Tue Mar 16 13:48:19 2004 for NeL by doxygen 1.3.6