#synchronization-primitive #thread #park #stack #semaphore #unpark

no-std sync-stack

A synchronisation primitive which allows threads to park and unpark

1 unstable release

0.1.0 Jun 14, 2019

#1095 in Concurrency

Custom license

16KB
120 lines

sync-stack

Provides a synchronisation primitive simmilar to a Semaphore in SyncStack.

The SyncStack is a useful when implementing other synchronisation primitives in place of a wait loop; allowing threads to wait for some resource to become available by calling SyncStack::park and be notified when another thread calls SyncStack::pop later.

Author --- daniel.bechaz@gmail.com
Last Moddified --- 2019-06-14


lib.rs:

Provides a synchronisation primitive simmilar to a Semaphore in [SyncStack].

Calling SyncStack::park will park the current thread on top of the stack where it will wait until it has been popped off the stack by a call to SyncStack::pop.

Author --- daniel.bechaz@gmail.com
Last Moddified --- 2019-06-14

No runtime deps

Features