| 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 | { |
no outgoing calls
no test coverage detected