mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
Peek gets locks too
This commit is contained in:
@@ -166,7 +166,9 @@ namespace sdl
|
||||
{
|
||||
Thread *t = luax_checkthread(L, 1);
|
||||
std::string name = luax_checklstring(L, 2);
|
||||
t->lock();
|
||||
ThreadVariant *v = t->receive(name);
|
||||
t->unlock();
|
||||
if (!v)
|
||||
{
|
||||
lua_pushnil(L);
|
||||
|
||||
Reference in New Issue
Block a user