Enzo
Loading...
Searching...
No Matches
UpdateLock.h
1#pragma once
2
3namespace enzo::nt {
4
5// forward declaration
6class NetworkManager;
7
15{
16 public:
18
24 static unsigned int getNumLocks();
25
30 static bool isLocked();
31
36 static bool isUnlocked();
37
38 private:
39 UpdateLock();
40
41 static unsigned int lockCounter;
42
43 friend nt::NetworkManager;
44};
45} // namespace enzo::nt
The central coordinator of the engine's node system.
Definition NetworkManager.h:27
Prevents updates on the network manager while in scope.
Definition UpdateLock.h:15
static bool isUnlocked()
Returns whether the lock is active or not. The lock is active as long as getNumLocks.
Definition UpdateLock.cpp:29
static unsigned int getNumLocks()
Returns the number of locks across all UpdateLock objects.
Definition UpdateLock.cpp:25
static bool isLocked()
Returns whether the lock is active or not. The lock is active as long as getNumLocks.
Definition UpdateLock.cpp:27