mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 03:05:28 -05:00
small change in test
This commit is contained in:
parent
64a41b0789
commit
5af816fe9b
1 changed files with 4 additions and 2 deletions
|
|
@ -43,7 +43,7 @@ module Queue = struct
|
|||
size=0;
|
||||
} in
|
||||
q
|
||||
|
||||
|
||||
let incr_size_ q = assert(q.size < q.capacity); q.size <- q.size + 1
|
||||
let decr_size_ q = assert(q.size > 0); q.size <- q.size - 1
|
||||
|
||||
|
|
@ -112,7 +112,9 @@ module Queue = struct
|
|||
let q = Queue.create 2 in
|
||||
let senders = Arr.spawn 3
|
||||
(fun i ->
|
||||
List.iter (Queue.push q) lists.(i)
|
||||
if i=1
|
||||
then Queue.push_list q lists.(i) (* test push_list *)
|
||||
else List.iter (Queue.push q) lists.(i)
|
||||
)
|
||||
in
|
||||
let l = CCLock.create [] in
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue