OpendTect
7.0
|
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 (const CallBack &, const char *nm=nullptr) | |
Thread (void(*)(void *), const char *nm=nullptr) | |
virtual | ~Thread () |
const char * | getName () const |
ThreadID | threadID () const |
void | waitForFinish () |
Protected Attributes | |
QThread * | thread_ |
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().
<>
Threads::Thread::Thread | ( | void(*)(void *) | , |
const char * | nm = nullptr |
||
) |
Threads::Thread::Thread | ( | const CallBack & | , |
const char * | nm = nullptr |
||
) |
|
virtual |
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.
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024