NLMISC::IRunnable Class Reference

#include <thread.h>

Inheritance diagram for NLMISC::IRunnable:

CTimeoutAssertionThread NL3D::CAsyncFileManager3D::CIGLoad NL3D::CAsyncFileManager3D::CIGLoadUser NL3D::CCalcLightableShapeRunnable NL3D::CLightRunnable NL3D::CRenderZBuffer NLAIAGENT::CAgentManagerTimer::CRunTimer NLMISC::CAsyncFileManager::CFileLoad NLMISC::CAsyncFileManager::CMultipleFileLoad NLMISC::CAsyncFileManager::CSignal NLMISC::CTaskManager NLMISC::CUpdateThread NLMISC::IRunnablePos NLNET::CClientReceiveTask NLNET::CListenTask NLNET::CServerReceiveTask NLSOUND::CAsyncFileManagerSound::CLoadWavFile

Detailed Description

Thread callback interface. When a thread is created, it will call run() in its attached IRunnable interface.

#include "nel/misc/thread.h" class HelloLoopThread : public IRunnable { void run () { while(true) printf("Hello World\n"); } }; IThread *thread = IThread::create (new HelloLoopThread); thread->start (); *

Author:
Vianney Lecroart

Nevrax France

Date:
2000

Definition at line 65 of file thread.h.

Public Member Functions

virtual void getName (std::string &result) const
virtual void run ()=0
virtual ~IRunnable ()


Constructor & Destructor Documentation

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

Definition at line 70 of file thread.h.

00071         {
00072         }


Member Function Documentation

virtual void NLMISC::IRunnable::getName std::string &  result  )  const [inline, virtual]
 

Reimplemented in NL3D::CAsyncFileManager3D::CMeshLoad, NL3D::CAsyncFileManager3D::CIGLoad, NL3D::CAsyncFileManager3D::CIGLoadUser, NL3D::CAsyncFileManager3D::CTextureLoad, NL3D::CZoneLoadingTask, NLPACS::CGlobalRetriever::CLrLoader, NLMISC::CAsyncFileManager::CFileLoad, NLMISC::CAsyncFileManager::CMultipleFileLoad, and NLMISC::CAsyncFileManager::CSignal.

Definition at line 74 of file thread.h.

Referenced by NLMISC::CTaskManager::run().

00075         {
00076                 result = "NoName";
00077         }

virtual void NLMISC::IRunnable::run  )  [pure virtual]
 

Implemented in NL3D::CAsyncFileManager3D::CMeshLoad, NL3D::CAsyncFileManager3D::CIGLoad, NL3D::CAsyncFileManager3D::CIGLoadUser, NL3D::CAsyncFileManager3D::CTextureLoad, NL3D::CLightRunnable, NL3D::CRenderZBuffer, NL3D::CCalcLightableShapeRunnable, NL3D::CZoneLoadingTask, NLMISC::CUpdateThread, NLPACS::CGlobalRetriever::CLrLoader, NLSOUND::CAsyncFileManagerSound::CLoadWavFile, NLAIAGENT::CAgentManagerTimer::CRunTimer, NLMISC::CAsyncFileManager::CFileLoad, NLMISC::CAsyncFileManager::CMultipleFileLoad, NLMISC::CAsyncFileManager::CSignal, NLMISC::CTaskManager, CTimeoutAssertionThread, NLNET::CClientReceiveTask, NLNET::CListenTask, and NLNET::CServerReceiveTask.

Referenced by NLMISC::CTaskManager::run().


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