Thread with back reference to thread pool and thread mutex in it.
More...
#include <SelectMgr_BVHThreadPool.hxx>
|
| | BVHThread () |
| | BVHThread (const BVHThread &theOther) |
| std::mutex & | BVHMutex () |
| | Returns mutex used for BVH building.
|
| BVHThread & | operator= (const BVHThread &theCopy) |
| | Assignment operator.
|
| void | Assign (const BVHThread &theCopy) |
| | Assignment operator.
|
| | OSD_Thread () |
| | Empty constructor.
|
| | OSD_Thread (const OSD_ThreadFunction &func) |
| | Initialize the tool by the thread function.
|
| | OSD_Thread (const OSD_Thread &other) |
| | Copy constructor.
|
| void | Assign (const OSD_Thread &other) |
| | Copy thread handle from other OSD_Thread object.
|
| void | operator= (const OSD_Thread &other) |
| | ~OSD_Thread () |
| | Destructor. Detaches the thread if it wasn't done already.
|
| void | SetPriority (const int thePriority) |
| void | SetFunction (const OSD_ThreadFunction &func) |
| | Initialize the tool by the thread function. If the current thread handle is not null, nullifies it.
|
| bool | Run (void *const data=nullptr, const int WNTStackSize=0) |
| | Starts a thread with thread function given in constructor, passing the specified input data (as void *) to it. The parameter WNTStackSize (on Windows only) specifies size of the stack to be allocated for the thread (by default - the same as for the current executable). Returns True if thread started successfully.
|
| void | Detach () |
| | Detaches the execution thread from this Thread object, so that it cannot be waited. Note that mechanics of this operation is different on UNIX/Linux (the thread is put to detached state) and Windows (the handle is closed). However, the purpose is the same: to instruct the system to release all thread data upon its completion.
|
| bool | Wait () |
| | Waits till the thread finishes execution.
|
| bool | Wait (void *&theResult) |
| | Wait till the thread finishes execution. Returns True if wait was successful, False in case of error.
|
| bool | Wait (const int time, void *&theResult) |
| | Waits for some time and if the thread is finished, it returns the result. The function returns false if the thread is not finished yet.
|
| Standard_ThreadId | GetId () const |
| | Returns ID of the currently controlled thread ID, or 0 if no thread is run.
|
Thread with back reference to thread pool and thread mutex in it.
◆ BVHThread() [1/2]
| SelectMgr_BVHThreadPool::BVHThread::BVHThread |
( |
| ) |
|
|
inline |
◆ BVHThread() [2/2]
| SelectMgr_BVHThreadPool::BVHThread::BVHThread |
( |
const BVHThread & | theOther | ) |
|
|
inline |
◆ Assign()
| void SelectMgr_BVHThreadPool::BVHThread::Assign |
( |
const BVHThread & | theCopy | ) |
|
|
inline |
◆ BVHMutex()
| std::mutex & SelectMgr_BVHThreadPool::BVHThread::BVHMutex |
( |
| ) |
|
|
inline |
Returns mutex used for BVH building.
◆ operator=()
The documentation for this class was generated from the following file: