From: mehdi Date: Wed, 27 Apr 2011 16:01:58 +0000 (+0200) Subject: got a number (not a table?) with Task_splay_irecv X-Git-Tag: v3_6_rc3~83 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/79e5bbf7431435865e2fbbdbbf298b1b8cc34cd9?hp=5a4a3fbc945c6768112243b34877bb7549ed8bba got a number (not a table?) with Task_splay_irecv --- diff --git a/src/bindings/lua/simgrid_lua.c b/src/bindings/lua/simgrid_lua.c index c908712c06..9c3a70edb1 100644 --- a/src/bindings/lua/simgrid_lua.c +++ b/src/bindings/lua/simgrid_lua.c @@ -247,7 +247,6 @@ static int Task_recv_with_timeout(lua_State * L) ("MSG_task_receive failed : Unexpected error , please report this bug"); break; } - return 1; } @@ -265,13 +264,13 @@ static int Task_splay_irecv(lua_State *L) MSG_comm_wait(comm, timeout); if (MSG_comm_get_status(comm) == MSG_OK) { + XBT_DEBUG("Receiving task : %s",MSG_task_get_name(task)); lua_State *sender_stack = MSG_task_get_data(task); lua_xmove(sender_stack, L, 1); // copy the data directly from sender's stack MSG_task_set_data(task, NULL); - MSG_comm_destroy(comm); } - - return 1; + MSG_comm_destroy(comm); + return 1; } static int Task_splay_isend(lua_State *L)