Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions
BVH_BuildQueue Class Reference

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 ()=default
 Releases resources of BVH build queue.
 
int Size () const
 Returns current size of BVH build queue. Uses acquire semantics to synchronize with enqueue/dequeue operations.
 
void Enqueue (const int theWorkItem)
 Enqueues new work-item onto BVH build queue.
 
int Fetch (bool &wasBusy)
 Fetches first work-item from BVH build queue.
 
bool HasBusyThreads () const
 Checks if there are active build threads. Uses acquire semantics to ensure visibility of thread counter updates. This is critical for termination detection: threads check this after finding an empty queue to determine if they should exit or wait.
 

Detailed Description

Command-queue for parallel building of BVH nodes.

Constructor & Destructor Documentation

◆ BVH_BuildQueue()

BVH_BuildQueue::BVH_BuildQueue ( )
inline

Creates new BVH build queue.

◆ ~BVH_BuildQueue()

BVH_BuildQueue::~BVH_BuildQueue ( )
default

Releases resources of BVH build queue.

Member Function Documentation

◆ Enqueue()

void BVH_BuildQueue::Enqueue ( const int theWorkItem)
inline

Enqueues new work-item onto BVH build queue.

◆ Fetch()

int BVH_BuildQueue::Fetch ( bool & wasBusy)
inline

Fetches first work-item from BVH build queue.

◆ HasBusyThreads()

bool BVH_BuildQueue::HasBusyThreads ( ) const
inline

Checks if there are active build threads. Uses acquire semantics to ensure visibility of thread counter updates. This is critical for termination detection: threads check this after finding an empty queue to determine if they should exit or wait.

◆ Size()

int BVH_BuildQueue::Size ( ) const
inline

Returns current size of BVH build queue. Uses acquire semantics to synchronize with enqueue/dequeue operations.


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