OpendTect-6_4  6.4
Public Member Functions | Protected Attributes | List of all members
Threads::Thread Class Reference

Is the base class for all threads. Start it by creating it and give it the function or CallBack to execute. More...

Public Member Functions

 Thread (void(*)(void *), const char *nm=0)
 
 Thread (const CallBack &, const char *nm=0)
 
virtual ~Thread ()
 
const void * threadID () const
 
void waitForFinish ()
 
const char * getName () const
 

Protected Attributes

::QThread * thread_
 

Detailed Description

Is the base class for all threads. Start it by creating it and give it the function or CallBack to execute.

The process that has created the thread must call destroy() or detach().

Constructor & Destructor Documentation

Threads::Thread::Thread ( void(*)(void *)  ,
const char *  nm = 0 
)
Threads::Thread::Thread ( const CallBack ,
const char *  nm = 0 
)
virtual Threads::Thread::~Thread ( )
virtual

Member Function Documentation

const char* Threads::Thread::getName ( ) const
const void* Threads::Thread::threadID ( ) const
void Threads::Thread::waitForFinish ( )

Stop the thread with this function. Will wait for the thread to return.

Member Data Documentation

:: QThread* Threads::Thread::thread_
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019