diff options
Diffstat (limited to 'tests/protect_allocator.lua')
-rw-r--r-- | tests/protect_allocator.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/protect_allocator.lua b/tests/protect_allocator.lua index 994cb39..325726a 100644 --- a/tests/protect_allocator.lua +++ b/tests/protect_allocator.lua | |||
@@ -36,7 +36,7 @@ end | |||
36 | 36 | ||
37 | -- start threads | 37 | -- start threads |
38 | local COUNT = 4 | 38 | local COUNT = 4 |
39 | local gen = lanes.gen( "*", body) | 39 | local gen = lanes.gen( "*", { name = 'auto' }, body) |
40 | for i = 1, COUNT do | 40 | for i = 1, COUNT do |
41 | gen( i) | 41 | gen( i) |
42 | end | 42 | end |
@@ -52,7 +52,7 @@ end | |||
52 | 52 | ||
53 | -- wait for completion | 53 | -- wait for completion |
54 | print "wait for completion" | 54 | print "wait for completion" |
55 | linda:receive( linda.batched, "key", COUNT) | 55 | linda:receive_batched("key", COUNT) |
56 | print "waiting a bit more ..." | 56 | print "waiting a bit more ..." |
57 | SLEEP(1) | 57 | SLEEP(1) |
58 | print "SUCCESS" | 58 | print "SUCCESS" |