VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Attributes | Static Protected Attributes
makVrf::DtNetInterfaceParallelLock Class Reference

Public Member Functions

 DtNetInterfaceParallelLock ()
 
DtNetInterfaceParallelLockacquire (const std::string &, tbb::spin_rw_mutex &, bool write=true)
 
DtNetInterfaceParallelLockwriteLockAcquire (const std::string &, tbb::spin_rw_mutex &)
 
void upgrade_to_writer ()
 
void downgrade_to_reader ()
 
void release ()
 

Static Public Member Functions

static void SetUsingParallelPublishing (bool)
 
static bool UsingParallelPublishing ()
 

Protected Attributes

tbb::spin_rw_mutex::scoped_lock myLock
 
std::string myArea
 
bool myForceWriteLocked
 

Static Protected Attributes

static bool theUsingParallelPublishing
 

Constructor & Destructor Documentation

makVrf::DtNetInterfaceParallelLock::DtNetInterfaceParallelLock ( )

Member Function Documentation

DtNetInterfaceParallelLock& makVrf::DtNetInterfaceParallelLock::acquire ( const std::string &  ,
tbb::spin_rw_mutex &  ,
bool  write = true 
)
DtNetInterfaceParallelLock& makVrf::DtNetInterfaceParallelLock::writeLockAcquire ( const std::string &  ,
tbb::spin_rw_mutex &   
)

Call this version to force a write lock acquisition, regardless of the setting of the using parallel lock.

void makVrf::DtNetInterfaceParallelLock::upgrade_to_writer ( )
void makVrf::DtNetInterfaceParallelLock::downgrade_to_reader ( )
void makVrf::DtNetInterfaceParallelLock::release ( )
static void makVrf::DtNetInterfaceParallelLock::SetUsingParallelPublishing ( bool  )
static

Default is true.

static bool makVrf::DtNetInterfaceParallelLock::UsingParallelPublishing ( )
static

Member Data Documentation

tbb::spin_rw_mutex::scoped_lock makVrf::DtNetInterfaceParallelLock::myLock
protected
bool makVrf::DtNetInterfaceParallelLock::theUsingParallelPublishing
staticprotected
std::string makVrf::DtNetInterfaceParallelLock::myArea
protected
bool makVrf::DtNetInterfaceParallelLock::myForceWriteLocked
protected

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

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)