From 184e5927bae42745232d59b6ba15b0052d2ec3a5 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sun, 5 Feb 2012 13:15:10 +1000 Subject: Get them in the right order. lol --- LuaSL/src/LuaSL.h | 2 +- LuaSL/src/LuaSL_runner.c | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'LuaSL/src') diff --git a/LuaSL/src/LuaSL.h b/LuaSL/src/LuaSL.h index c35b394..0b831c8 100644 --- a/LuaSL/src/LuaSL.h +++ b/LuaSL/src/LuaSL.h @@ -61,8 +61,8 @@ boolean compilerSetup(gameGlobals *game); boolean compileLSL(gameGlobals *game, char *script, boolean doConstants); void runnerSetup(gameGlobals *game); -void runnerTearDown(gameGlobals *game); void runLuaFile(gameGlobals *game, const char *filename); +void runnerTearDown(gameGlobals *game); void loggingStartup(gameGlobals *game); char *getDateTime(struct tm **nowOut, char *dateOut, time_t *tiemOut); diff --git a/LuaSL/src/LuaSL_runner.c b/LuaSL/src/LuaSL_runner.c index 411c437..8aa115c 100644 --- a/LuaSL/src/LuaSL_runner.c +++ b/LuaSL/src/LuaSL_runner.c @@ -132,12 +132,6 @@ void runnerSetup(gameGlobals *game) PE("Error creating luaproc worker thread."); } -void runnerTearDown(gameGlobals *game) -{ -// TODO - this is what hangs the system. - sched_join_workerthreads(); -} - void runLuaFile(gameGlobals *game, const char *filename) { newProc(filename, TRUE); @@ -158,3 +152,9 @@ void runLuaFile(gameGlobals *game, const char *filename) _edje_lua2_error(L, err); */ } + +void runnerTearDown(gameGlobals *game) +{ +// TODO - this is what hangs the system. + sched_join_workerthreads(); +} -- cgit v1.1