VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Protected Member Functions | Protected Attributes
DtBackgroundBvhBuilder Class Reference

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< boolmyShutdownFlag
 
tbb::tbb_thread * myProcessingThread
 
std::mutex myMutex
 
std::condition_variable myThreadCV
 

Constructor & Destructor Documentation

DtBackgroundBvhBuilder::DtBackgroundBvhBuilder ( )
virtual DtBackgroundBvhBuilder::~DtBackgroundBvhBuilder ( )
virtual

Member Function Documentation

virtual void DtBackgroundBvhBuilder::addTrianleMeshShape ( DtBvhTriangleMeshShape::Ptr  shape)
virtual
static void DtBackgroundBvhBuilder::threadMain ( DtBackgroundBvhBuilder builder)
staticprotected

Member Data Documentation

tbb::concurrent_queue<DtBvhTriangleMeshShape::Ptr> DtBackgroundBvhBuilder::myShapesToProcess
protected
std::atomic<bool> DtBackgroundBvhBuilder::myShutdownFlag
protected

Set my destructor to true to indicate that the processing thread(s) should stop processing.

tbb::tbb_thread* DtBackgroundBvhBuilder::myProcessingThread
protected
std::mutex DtBackgroundBvhBuilder::myMutex
protected

Mutex and condition_variable used to wake up worker thread when needed.

std::condition_variable DtBackgroundBvhBuilder::myThreadCV
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)