-
- Downloads
Fix Lua scripting synchronization
For several years now, the lua script lock has been completely broken. This commit fixes the main issue (creation of a temporary rather than scoped object), and fixes a subsequent deadlock issue caused by nested script API calls by adding support for recursive mutexes.
Showing
- src/script/cpp_api/s_base.cpp 8 additions, 2 deletionssrc/script/cpp_api/s_base.cpp
- src/script/cpp_api/s_base.h 3 additions, 1 deletionsrc/script/cpp_api/s_base.h
- src/script/cpp_api/s_internal.h 32 additions, 10 deletionssrc/script/cpp_api/s_internal.h
- src/threading/mutex.cpp 13 additions, 3 deletionssrc/threading/mutex.cpp
- src/threading/mutex.h 1 addition, 1 deletionsrc/threading/mutex.h
Loading
Please register or sign in to comment