VR-Forces 4.8 Class Documentation
 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. More...

Public Member Functions

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

Private Attributes

unsigned myMaxThreads
 
unsigned myUsedThreads
 

Detailed Description

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

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.

Member Data Documentation

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

Referenced by claimThread(), and releaseThread().


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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)