We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 131a8f2 commit 6260f10Copy full SHA for 6260f10
1 file changed
depends/lua/include/dfhack_llimits.h
@@ -57,6 +57,7 @@ struct lua_extra_state {
57
#define luai_userstateopen(L) do { \
58
luai_mutex(L) = (mutex_t*)malloc(sizeof(mutex_t)); \
59
pthread_mutexattr_t attr; \
60
+ pthread_mutexattr_init(&attr); \
61
pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); \
62
pthread_mutex_init(luai_mutex(L), &attr); \
63
} while (0)
0 commit comments