Open CASCADE Technology
7.1.0.beta
|
Command-queue for parallel building of BVH nodes. More...
#include <BVH_BuildQueue.hxx>
Public Member Functions | |
BVH_BuildQueue () | |
Creates new BVH build queue. More... | |
~BVH_BuildQueue () | |
Releases resources of BVH build queue. More... | |
Standard_Integer | Size () |
Returns current size of BVH build queue. More... | |
void | Enqueue (const Standard_Integer &theNode) |
Enqueues new work-item onto BVH build queue. More... | |
Standard_Integer | Fetch (Standard_Boolean &wasBusy) |
Fetches first work-item from BVH build queue. More... | |
Standard_Boolean | HasBusyThreads () |
Checks if there are active build threads. More... | |
Protected Attributes | |
NCollection_Sequence< Standard_Integer > | myQueue |
Queue of BVH nodes to build. More... | |
Standard_Mutex | myMutex |
Manages access serialization of working threads. More... | |
Standard_Integer | myNbThreads |
Number of active build threads. More... | |
Command-queue for parallel building of BVH nodes.
|
inline |
Creates new BVH build queue.
|
inline |
Releases resources of BVH build queue.
void BVH_BuildQueue::Enqueue | ( | const Standard_Integer & | theNode | ) |
Enqueues new work-item onto BVH build queue.
Standard_Integer BVH_BuildQueue::Fetch | ( | Standard_Boolean & | wasBusy | ) |
Fetches first work-item from BVH build queue.
|
inline |
Checks if there are active build threads.
Standard_Integer BVH_BuildQueue::Size | ( | ) |
Returns current size of BVH build queue.
|
protected |
Manages access serialization of working threads.
|
protected |
Number of active build threads.
|
protected |
Queue of BVH nodes to build.