![]() |
OpendTect
6.3
|
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_ |
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.
| Threads::Thread::Thread | ( | void(*)(void *) | , |
| const char * | nm | ||
| ) |
| Threads::Thread::Thread | ( | const CallBack & | , |
| const char * | nm | ||
| ) |
|
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. 2017