Barrier.hx 358 B

1234567891011121314151617181920212223
  1. package eval.luv;
  2. /**
  3. Barriers.
  4. @see https://aantron.github.io/luv/luv/Luv/Barrier
  5. **/
  6. @:coreType abstract Barrier {
  7. /**
  8. Allocates and initializes a barrier.
  9. **/
  10. static public function init(count:Int):Result<Barrier>;
  11. /**
  12. Cleans up a barrier.
  13. **/
  14. public function destroy():Void;
  15. /**
  16. Waits on a barrier.
  17. **/
  18. public function wait():Bool;
  19. }