summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorruki <[email protected]>2016-07-13 10:19:43 +0800
committerruki <[email protected]>2016-07-13 10:19:43 +0800
commitad41572d133d11d74e12d37e57d496aa26fe76db (patch)
tree531322956699aff2365ce3111e5ea5c64b9e9ba0 /core/src
parentc0f02d4654ea2b46732eacbacce8fc9ee80c6e9a (diff)
rewrite scheduling for compiling
Diffstat (limited to 'core/src')
-rwxr-xr-xcore/src/xmake/process/waitlist.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/core/src/xmake/process/waitlist.c b/core/src/xmake/process/waitlist.c
index a2d461401..98fd438e3 100755
--- a/core/src/xmake/process/waitlist.c
+++ b/core/src/xmake/process/waitlist.c
@@ -45,9 +45,9 @@
* failed: -1
*
* for _, procinfo in ipairs(list) do
- * print("index: ", procinfo[1])
- * print("status: ", procinfo[2])
- * print("process: ", procinfo[3])
+ * print("proc: ", procinfo[1])
+ * print("index: ", procinfo[2])
+ * print("status: ", procinfo[3])
* end
*/
tb_int_t xm_process_waitlist(lua_State* lua)
@@ -126,11 +126,11 @@ tb_int_t xm_process_waitlist(lua_State* lua)
{
// save one process info
lua_newtable(lua);
- lua_pushinteger(lua, infolist[i].index + 1);
+ lua_pushlightuserdata(lua, infolist[i].process);
lua_rawseti(lua, -2, 1);
- lua_pushinteger(lua, infolist[i].status);
+ lua_pushinteger(lua, infolist[i].index + 1);
lua_rawseti(lua, -2, 2);
- lua_pushlightuserdata(lua, infolist[i].process);
+ lua_pushinteger(lua, infolist[i].status);
lua_rawseti(lua, -2, 3);
lua_rawseti(lua, -2, i + 1);