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 | Private Attributes
DtNavGenerationThreadCounter Class Reference

This class is just used to count the nav generation threads to ensure we do not start too many threads at a time.

Public Member Functions

 DtNavGenerationThreadCounter (unsigned maxThreads)
 
void setMaxThreads (unsigned maxThreads)
 
unsigned maxThreads () const
 
bool claimThread ()
 
void releaseThread ()
 
void releaseAllThreads ()
 

Private Attributes

unsigned myMaxThreads
 
unsigned myUsedThreads
 

Constructor & Destructor Documentation

DtNavGenerationThreadCounter::DtNavGenerationThreadCounter ( unsigned  maxThreads)
inline

Member Function Documentation

void DtNavGenerationThreadCounter::setMaxThreads ( unsigned  maxThreads)
inline

References maxThreads(), and myMaxThreads.

unsigned DtNavGenerationThreadCounter::maxThreads ( ) const
inline

References myMaxThreads.

Referenced by setMaxThreads().

bool DtNavGenerationThreadCounter::claimThread ( )
inline

References myMaxThreads, and myUsedThreads.

void DtNavGenerationThreadCounter::releaseThread ( )
inline

References myUsedThreads.

void DtNavGenerationThreadCounter::releaseAllThreads ( )
inline

References myUsedThreads.

Member Data Documentation

unsigned DtNavGenerationThreadCounter::myMaxThreads
private
unsigned DtNavGenerationThreadCounter::myUsedThreads
private

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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)