# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NLMISC::IThread Class Reference

Thread base interface, must be implemented for all OS. More...

#include <thread.h>

List of all members.

Public Methods

virtual ~IThread ()
virtual void start ()=0
virtual void terminate ()=0
virtual void wait ()=0
virtual IRunnablegetRunnable ()=0
 Return a pointer to the runnable object. More...

virtual bool setCPUMask (uint64 cpuMask)=0
 Set the CPU mask of this thread. More...

virtual uint64 getCPUMask ()=0
 Get the CPU mask of this thread. More...

virtual std::string getUserName ()=0
 Get the thread user name. More...


Static Public Methods

IThread * create (IRunnable *runnable)
 Create a new thread. More...

IThread * getCurrentThread ()
 Return a pointer on the current thread. More...


Detailed Description

Thread base interface, must be implemented for all OS.

Author:
Vianney Lecroart , Nevrax France
Date:
2000

Definition at line 81 of file thread.h.


Constructor & Destructor Documentation

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

Definition at line 98 of file thread.h.


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.

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.

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

Referenced by NLNET::CBufClient::connect, NLMISC::CWindowDisplayer::create, and NLNET::CBufServer::init.

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

Referenced by NLAIAGENT::CAgentManagerTimer::releaseClass.

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: