mirror of
https://github.com/love2d/love.git
synced 2026-08-19 12:14:20 +02:00
Thread:kill()? What Thread:kill()?
This commit is contained in:
@@ -36,13 +36,6 @@ namespace thread
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int w_Thread_kill(lua_State *L)
|
|
||||||
{
|
|
||||||
Thread *t = luax_checkthread(L, 1);
|
|
||||||
t->kill();
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
int w_Thread_wait(lua_State *L)
|
int w_Thread_wait(lua_State *L)
|
||||||
{
|
{
|
||||||
Thread *t = luax_checkthread(L, 1);
|
Thread *t = luax_checkthread(L, 1);
|
||||||
@@ -152,7 +145,6 @@ namespace thread
|
|||||||
|
|
||||||
static const luaL_Reg type_functions[] = {
|
static const luaL_Reg type_functions[] = {
|
||||||
{ "start", w_Thread_start },
|
{ "start", w_Thread_start },
|
||||||
{ "kill", w_Thread_kill },
|
|
||||||
{ "wait", w_Thread_wait },
|
{ "wait", w_Thread_wait },
|
||||||
{ "getName", w_Thread_getName },
|
{ "getName", w_Thread_getName },
|
||||||
{ "get", w_Thread_get },
|
{ "get", w_Thread_get },
|
||||||
|
|||||||
@@ -31,7 +31,6 @@ namespace thread
|
|||||||
{
|
{
|
||||||
Thread *luax_checkthread(lua_State *L, int idx);
|
Thread *luax_checkthread(lua_State *L, int idx);
|
||||||
int w_Thread_start(lua_State *L);
|
int w_Thread_start(lua_State *L);
|
||||||
int w_Thread_kill(lua_State *L);
|
|
||||||
int w_Thread_wait(lua_State *L);
|
int w_Thread_wait(lua_State *L);
|
||||||
int w_Thread_getName(lua_State *L);
|
int w_Thread_getName(lua_State *L);
|
||||||
int w_Thread_get(lua_State *L);
|
int w_Thread_get(lua_State *L);
|
||||||
|
|||||||
Reference in New Issue
Block a user