@@ -58,9 +58,9 @@ assert. 2 <: 1 T. ''
58
58
NB. verify that tasks go to different threads if possible. We can ensure this only for as many threads as there are cores
59
59
setth nwthreads=. 1 >. <: 0 { 8 T. ' ' NB. one worker thread per core, -1
60
60
wthr nwthreads
61
- assert. GITHUBCI +. (>: i. nwthreads) *. / @ e. aaa__ =: > (3 & T. @ ' ' )@ (6 !: 3 ) t. ' ' " (0 ) (0.1 # ~ <: nwthreads), 0.6
61
+ assert. ( 0 [ GITHUBCI) +. (>: i. nwthreads) *. / @ e. aaa__ =: > (3 & T. @ ' ' )@ (6 !: 3 ) t. ' ' " (0 ) (0.1 # ~ <: nwthreads), 0.6
62
62
wthr nwthreads
63
- assert. GITHUBCI +. (>: i. nwthreads) *. / @ e. > (3 & T. @ ' ' )@ (6 !: 3 ) t. ' ' " (0 ) (0.6 # ~ <: nwthreads), 0.1
63
+ assert. ( 0 [ GITHUBCI) +. (>: i. nwthreads) *. / @ e. > (3 & T. @ ' ' )@ (6 !: 3 ) t. ' ' " (0 ) (0.6 # ~ <: nwthreads), 0.1
64
64
wthr nwthreads
65
65
assert. (ccc__ =: ((< _1000 ) # ~ <: nwthreads), (>: i. nwthreads); _1001 ) e. ~ & > bbb__ =: 4 T. aaa__ =: (3 & T. @ ' ' )@ (6 !: 3 ) t. ' ' " (0 ) (0.3 # ~ <: nwthreads), 2 1 NB. last thread should run in master; earlier ones complete first
66
66
wthr nwthreads
@@ -131,14 +131,14 @@ techo^:chk 'gtdot3 a32b'
131
131
NB. the following line hang on freebsd
132
132
assert. 1 = 11 T. mtx; 2.0
133
133
techo^: chk ' gtdot3 a32c'
134
- assert. GITHUBCI +. (2.3 > dly) *. (2 - granularity) <: dly =. tod- ~ 6 !: 1 ' ' NB. verify delay
134
+ assert. ( 0 [ GITHUBCI) +. (2.3 > dly) *. (2 - granularity) <: dly =. tod- ~ 6 !: 1 ' ' NB. verify delay
135
135
techo^: chk ' gtdot3 a32d'
136
136
tod =. 6 !: 1 ' '
137
137
assert. 1 = 11 T. mtx; 0.1
138
- assert. GITHUBCI +. (0.3 > dly) *. (0.1 - granularity) <: dly =. tod- ~ 6 !: 1 ' ' NB. verify delay
138
+ assert. ( 0 [ GITHUBCI) +. (0.3 > dly) *. (0.1 - granularity) <: dly =. tod- ~ 6 !: 1 ' ' NB. verify delay
139
139
tod =. 6 !: 1 ' '
140
140
assert. 1 = 11 T. mtx; 0
141
- assert. GITHUBCI +. (0.3 > dly) *. 0 <: dly =. tod- ~ 6 !: 1 ' ' NB. verify no delay
141
+ assert. ( 0 [ GITHUBCI) +. (0.3 > dly) *. 0 <: dly =. tod- ~ 6 !: 1 ' ' NB. verify no delay
142
142
mtx=.10 T. 1 NB. recursive
143
143
assert. 0 = 11 T. mtx
144
144
assert. 0 = 11 T. mtx NB. lock count=2
0 commit comments