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