Skip to content

mahmudsudo/Semaphore_rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust Semaphore Library

A lightweight, thread-safe implementation of a counting semaphore in Rust.

Features

  • Simple and efficient semaphore implementation
  • Thread-safe using std::sync primitives
  • Easy-to-use API with new, acquire, and release methods
  • Includes basic test coverage

Usage

let sem = Semaphore::new(2);
sem.acquire();
// Critical section
sem.release();

Perfect for managing access to limited resources in concurrent Rust applications.

About

A lightweight, thread-safe implementation of a counting semaphore in Rust.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages