diff options
Diffstat (limited to 'tests/track_lanes.lua')
-rw-r--r-- | tests/track_lanes.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/track_lanes.lua b/tests/track_lanes.lua index 32f579b..803fae5 100644 --- a/tests/track_lanes.lua +++ b/tests/track_lanes.lua | |||
@@ -29,11 +29,11 @@ local sleeper = function( name_, seconds_) | |||
29 | end | 29 | end |
30 | -- print( "entering '" .. name_ .. "'") | 30 | -- print( "entering '" .. name_ .. "'") |
31 | local lanes = require "lanes" | 31 | local lanes = require "lanes" |
32 | -- no set_debug_threadname in main thread | 32 | -- no lane_threadname in main thread |
33 | if set_debug_threadname | 33 | if lane_threadname |
34 | then | 34 | then |
35 | -- print( "set_debug_threadname('" .. name_ .. "')") | 35 | -- print( "lane_threadname('" .. name_ .. "')") |
36 | set_debug_threadname( name_) | 36 | lane_threadname( name_) |
37 | end | 37 | end |
38 | -- suspend the lane for the specified duration | 38 | -- suspend the lane for the specified duration |
39 | lanes.sleep(seconds_) | 39 | lanes.sleep(seconds_) |