1234567891011121314151617(* This file is part of Luv, released under the MIT license. See LICENSE.md for
details, or visit https://github.com/aantron/luv/blob/master/LICENSE.md. *)typet=C.Types.Barrier.tCtypes.ptrletinitcount=letbarrier=Ctypes.addr(Ctypes.makeC.Types.Barrier.t)inC.Functions.Barrier.initbarrier(Unsigned.UInt.of_intcount)|>Error.to_resultbarrierletdestroy=C.Functions.Barrier.destroyletwait=C.Blocking.Barrier.wait