OpendTect  6.3
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)
 
 Thread (const CallBack &, const char *nm)
 
virtual ~Thread ()
 
ThreadID 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().

Try to give each thread a meaningful name, because the name will show up in crash reports. If you really can't think of any, you can still pass null.

Constructor & Destructor Documentation

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

Member Function Documentation

const char* Threads::Thread::getName ( ) const
ThreadID 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. 2017