Registry / utility / barrier

barrier

JSON →
library1.0.2rbrubygemsunverified

A synchronization barrier enables multiple threads to wait until all threads have all reached a particular point of execution before any thread continues.

gem install barrier
INSTALL
IMPORT
SIG · BARRIER
B
barrier
utilityrubyv1.0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Barrier
require 'barrier'

Create a barrier for 3 threads and wait for all to reach the synchronization point.

require 'barrier' barrier = Barrier.new(3) threads = 3.times.map do Thread.new do # do some work barrier.wait end end threads.each(&:join)
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.2latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
10
OpenAI (training)
2
Meta
1
Resources
barrier — gem install barrier · libregistry