Enzo
Loading...
Searching...
No Matches
enzo::nt::UpdateLock Class Reference

Prevents updates on the network manager while in scope. More...

#include <UpdateLock.h>

Static Public Member Functions

static unsigned int getNumLocks ()
 Returns the number of locks across all UpdateLock objects.
 
static bool isLocked ()
 Returns whether the lock is active or not. The lock is active as long as getNumLocks > 0.
 
static bool isUnlocked ()
 Returns whether the lock is active or not. The lock is active as long as getNumLocks > 0.
 

Detailed Description

Prevents updates on the network manager while in scope.

See #nt::NetworkManager for constructing

Member Function Documentation

◆ getNumLocks()

unsigned int enzo::nt::UpdateLock::getNumLocks ( )
static

Returns the number of locks across all UpdateLock objects.

Returns
When this value is greater than 0 a lock is in place and the network cannot update, when it's equal to zero the network is able to update again.

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