diff options
author | Benoit Germain <bnt.germain@gmail.com> | 2011-03-01 21:12:56 +0100 |
---|---|---|
committer | Benoit Germain <bnt.germain@gmail.com> | 2011-03-01 21:12:56 +0100 |
commit | e97adefde985e30fe31ffa036c74ffb0ce10ca26 (patch) | |
tree | 4465decc5f07e7399f9760d6302dbaf7163120d7 /src/keeper.c | |
parent | 974aa4343cf900938b5d357d10798d91faf60f5a (diff) | |
download | lanes-e97adefde985e30fe31ffa036c74ffb0ce10ca26.tar.gz lanes-e97adefde985e30fe31ffa036c74ffb0ce10ca26.tar.bz2 lanes-e97adefde985e30fe31ffa036c74ffb0ce10ca26.zip |
* fixed potential crash at application shutdown when calling lua_close() on a killed thread's VM.
* exposed cancel_test() in the lanes to enable manual testing for cancellation requests.
* removed kludgy {globals={threadName}} support, replaced with a new function set_debug_threadname().
Diffstat (limited to 'src/keeper.c')
-rw-r--r-- | src/keeper.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/keeper.c b/src/keeper.c index f89c638..01e8880 100644 --- a/src/keeper.c +++ b/src/keeper.c | |||
@@ -94,6 +94,12 @@ char const *init_keepers( int const _nbKeepers) | |||
94 | if (!L) | 94 | if (!L) |
95 | return "out of memory"; | 95 | return "out of memory"; |
96 | 96 | ||
97 | // to see VM name in Decoda debugger | ||
98 | lua_pushliteral( L, "Keeper #"); | ||
99 | lua_pushinteger( L, i + 1); | ||
100 | lua_concat( L, 2); | ||
101 | lua_setglobal( L, "decoda_name"); | ||
102 | |||
97 | luaG_openlibs( L, "io,table,package" ); // 'io' for debugging messages, package because we need to require modules exporting idfuncs | 103 | luaG_openlibs( L, "io,table,package" ); // 'io' for debugging messages, package because we need to require modules exporting idfuncs |
98 | serialize_require( L); | 104 | serialize_require( L); |
99 | 105 | ||