MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / LockDatabase

Class LockDatabase

Engine/source/module/moduleManager.h:68–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66private:
67 /// Database locking.
68 struct LockDatabase
69 {
70 public:
71 LockDatabase( ModuleManager* pManager ) :
72 mpManager( pManager )
73 {
74 mpManager->mDatabaseLocks++;
75 }
76
77 ~LockDatabase()
78 {
79 mpManager->mDatabaseLocks--;
80
81 // Sanity!
82 AssertFatal( mpManager->mDatabaseLocks >= 0, "Module Manager: Cannot unlock database as it is already unlocked." );
83 }
84
85 private:
86 ModuleManager* mpManager;
87 };
88
89 /// Loaded module entry.
90 struct ModuleLoadEntry

Callers 5

scanModulesMethod · 0.85
loadModuleGroupMethod · 0.85
unloadModuleGroupMethod · 0.85
loadModuleExplicitMethod · 0.85
unloadModuleExplicitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected