# 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::IRunnable Class Reference

Thread callback interface. More...

#include <thread.h>

Inheritance diagram for NLMISC::IRunnable:

NL3D::CAsyncFileManager3D::CIGLoad NL3D::CAsyncFileManager3D::CIGLoadUser NL3D::CAsyncFileManager3D::CMeshLoad NL3D::CAsyncFileManager3D::CTextureLoad NL3D::CCalcLightableShapeRunnable NL3D::CCalcRunnable NL3D::CZoneLoadingTask NLAIAGENT::CAgentManagerTimer::CRunTimer NLMISC::CAsyncFileManager::CFileLoad NLMISC::CAsyncFileManager::CMultipleFileLoad NLMISC::CAsyncFileManager::CSignal NLMISC::CTaskManager NLMISC::CUpdateThread NLNET::CClientReceiveTask NLNET::CListenTask NLNET::CServerReceiveTask NLSOUND::CAsyncFileManagerSound::CLoadWavFile List of all members.

Public Methods

virtual void run ()=0
virtual ~IRunnable ()

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.


Constructor & Destructor Documentation

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

Definition at line 70 of file thread.h.


Member Function Documentation

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

Implemented in NLAIAGENT::CAgentManagerTimer::CRunTimer.


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