aboutsummaryrefslogtreecommitdiff
path: root/src/lanes.lua
diff options
context:
space:
mode:
authorBenoit Germain <bnt.germain@gmail.com>2011-03-01 21:12:56 +0100
committerBenoit Germain <bnt.germain@gmail.com>2011-03-01 21:12:56 +0100
commite97adefde985e30fe31ffa036c74ffb0ce10ca26 (patch)
tree4465decc5f07e7399f9760d6302dbaf7163120d7 /src/lanes.lua
parent974aa4343cf900938b5d357d10798d91faf60f5a (diff)
downloadlanes-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/lanes.lua')
-rw-r--r--src/lanes.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lanes.lua b/src/lanes.lua
index 78582f9..704559a 100644
--- a/src/lanes.lua
+++ b/src/lanes.lua
@@ -399,8 +399,8 @@ if first_time then
399 -- We let the timer lane be a "free running" thread; no handle to it 399 -- We let the timer lane be a "free running" thread; no handle to it
400 -- remains. 400 -- remains.
401 -- 401 --
402 gen( "io,package", { priority=max_prio, globals={threadName="LanesTimer"} }, function() 402 gen( "io,package", { priority=max_prio}, function()
403 403 set_debugger_threadname( "LanesTimer")
404 while true do 404 while true do
405 local next_wakeup= check_timers() 405 local next_wakeup= check_timers()
406 406