Registry / utility / semian

semian

JSON →
library0.28.2rbrubygemsunverified

A Ruby C extension using SysV semaphores to control access to shared resources across processes.

gem install semian
INSTALL
IMPORT
SIG · SEMIAN
S
semian
utilityrubyv0.28.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.

Semian
require 'semian'

Protect a shared resource with a semaphore.

require 'semian' Semian.configure do |config| config.tickets = 10 end Semian.protect(:my_resource) { puts 'Accessing shared resource' }
Debug
Known issues
gotchaRequires a system with SysV semaphore support (Linux, macOS).
fix
Ensure your operating system supports SysV semaphores or use an alternative.
affects: >= 0.1.0
Upgrade
Version history
0.28.2latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
32 hits · last 30 days
node
28
Amazon
1
OpenAI (training)
1
Resources
semian — gem install semian · libregistry