![]() |
VR-Forces Developer's Guide
|
This class encapsulates a worker thread which calls buildBvh() on each DtBvhTriangleMeshShape that is passed in.
Public Member Functions | |
| DtBackgroundBvhBuilder () | |
| virtual | ~DtBackgroundBvhBuilder () |
| virtual void | addTrianleMeshShape (DtBvhTriangleMeshShape::Ptr shape) |
Static Protected Member Functions | |
| static void | threadMain (DtBackgroundBvhBuilder *builder) |
Protected Attributes | |
| tbb::concurrent_queue < DtBvhTriangleMeshShape::Ptr > | myShapesToProcess |
| std::atomic< bool > | myShutdownFlag |
| tbb::tbb_thread * | myProcessingThread |
| std::mutex | myMutex |
| std::condition_variable | myThreadCV |
| DtBackgroundBvhBuilder::DtBackgroundBvhBuilder | ( | ) |
|
virtual |
|
virtual |
|
staticprotected |
|
protected |
|
protected |
Set my destructor to true to indicate that the processing thread(s) should stop processing.
|
protected |
|
protected |
Mutex and condition_variable used to wake up worker thread when needed.
|
protected |