diff options
Diffstat (limited to 'tests/deadlock.lua')
-rw-r--r-- | tests/deadlock.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/deadlock.lua b/tests/deadlock.lua index bbbda8d..d028e83 100644 --- a/tests/deadlock.lua +++ b/tests/deadlock.lua | |||
@@ -22,7 +22,7 @@ if do_extra_stuff then | |||
22 | 22 | ||
23 | -- lane generator. don't initialize "io" base library so that it is not known in the lane | 23 | -- lane generator. don't initialize "io" base library so that it is not known in the lane |
24 | local g = lanes.gen('base,table', function() | 24 | local g = lanes.gen('base,table', function() |
25 | set_debug_threadname( "deadlock_lane") | 25 | lane_threadname( "deadlock_lane") |
26 | -- wrapping inside pcall makes the Lanes module unaware that something went wrong | 26 | -- wrapping inside pcall makes the Lanes module unaware that something went wrong |
27 | print( "In lane 1:", table_unpack{ pcall( linda.receive, linda, 'tmp')}) | 27 | print( "In lane 1:", table_unpack{ pcall( linda.receive, linda, 'tmp')}) |
28 | -- with the bug not fixed, and non-recursive mutexes, we can hang here | 28 | -- with the bug not fixed, and non-recursive mutexes, we can hang here |