aboutsummaryrefslogtreecommitdiff
path: root/tests/fibonacci.lua
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-07-03 13:21:45 +0200
committerBenoit Germain <benoit.germain@ubisoft.com>2024-07-03 13:21:45 +0200
commitffedd175233975f3ca9ac940df9883898d5ace25 (patch)
treea073d90a98b188635b19027d797e2c8b663501e0 /tests/fibonacci.lua
parentf81fe873dd24f93306f0f667fc47766990a9321b (diff)
downloadlanes-ffedd175233975f3ca9ac940df9883898d5ace25.tar.gz
lanes-ffedd175233975f3ca9ac940df9883898d5ace25.tar.bz2
lanes-ffedd175233975f3ca9ac940df9883898d5ace25.zip
Renamed set_debug_threadname → lane_threadname (can also read the current name now)
Diffstat (limited to 'tests/fibonacci.lua')
-rw-r--r--tests/fibonacci.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/fibonacci.lua b/tests/fibonacci.lua
index 51e7137..7885ae6 100644
--- a/tests/fibonacci.lua
+++ b/tests/fibonacci.lua
@@ -24,14 +24,14 @@ end
24local KNOWN= { [0]=0, 1,1,2,3,5,8,13,21,34,55,89,144 } 24local KNOWN= { [0]=0, 1,1,2,3,5,8,13,21,34,55,89,144 }
25 25
26-- dummy function so that we don't error when fib() is launched from the master state 26-- dummy function so that we don't error when fib() is launched from the master state
27set_debug_threadname = function ( ...) 27lane_threadname = function ( ...)
28end 28end
29 29
30 -- 30 --
31-- uint= fib( n_uint ) 31-- uint= fib( n_uint )
32-- 32--
33local function fib( n ) 33local function fib( n )
34 set_debug_threadname( "fib(" .. n .. ")") 34 lane_threadname( "fib(" .. n .. ")")
35 local lanes = require"lanes" 35 local lanes = require"lanes"
36 -- 36 --
37 local sum 37 local sum