MCPcopy Create free account
hub / github.com/Norbyte/bg3se / DecLuaRefs

Method DecLuaRefs

BG3Extender/Extender/Shared/ExtensionState.cpp:292–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290 }
291
292 void ExtensionStateBase::DecLuaRefs(bool releaseVm)
293 {
294 se_assert(luaRefs_ > 0);
295 se_assert(owningThread_ == GetCurrentThreadId());
296 if (--luaRefs_ == 0) {
297 owningThread_ = 0;
298 }
299
300 if (luaRefs_ == 0 && LuaPendingDelete && releaseVm) {
301 LuaResetInternal();
302 }
303
304 luaMutex_.unlock();
305 }
306
307 void ExtensionStateBase::RequestLuaReset(ExtensionStateContext nextContext, bool startup)
308 {

Callers 2

~LuaVirtualPinMethod · 0.80
~LuaStatePinMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected