[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re:When must I provide a self-defined lua_lock macro(e.g: #define lua_lock(L) pthread_lock(&mutex))?
- From: Suote127 <tswuyin_st127@...>
- Date: Fri, 29 Jan 2021 06:57:53 +0800 (CST)
When you want to use Lua in muilt-thread,you need to define it.But this also bring lots of problems,deadlock is one of them,and the performance is,too.
But,in fact,using Lua in muilt-thread itself is just a *BAD* idea
Suote127