mirror of
https://github.com/love2d/love.git
synced 2026-08-20 04:30:09 +02:00
the merge screwed up the new thread API, fixed
--HG-- branch : minor
This commit is contained in:
@@ -77,7 +77,7 @@ namespace sdl
|
|||||||
Thread *t = luax_checkthread(L, 1);
|
Thread *t = luax_checkthread(L, 1);
|
||||||
std::string name = luax_checklstring(L, 2);
|
std::string name = luax_checklstring(L, 2);
|
||||||
t->lock();
|
t->lock();
|
||||||
ThreadVariant *v = t->receive(name);
|
ThreadVariant *v = t->get(name);
|
||||||
t->clear(name);
|
t->clear(name);
|
||||||
t->unlock();
|
t->unlock();
|
||||||
if (!v)
|
if (!v)
|
||||||
@@ -167,7 +167,7 @@ namespace sdl
|
|||||||
Thread *t = luax_checkthread(L, 1);
|
Thread *t = luax_checkthread(L, 1);
|
||||||
std::string name = luax_checklstring(L, 2);
|
std::string name = luax_checklstring(L, 2);
|
||||||
t->lock();
|
t->lock();
|
||||||
ThreadVariant *v = t->receive(name);
|
ThreadVariant *v = t->get(name);
|
||||||
t->unlock();
|
t->unlock();
|
||||||
if (!v)
|
if (!v)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user