class Syn::RWLock
- Syn::RWLock
- Reference
- Object
Overview
A many readers, mutually exclusive writer lock.
Allows readers to run concurrently but ensures that they will never run concurrently to a writer. Writers are mutually exclusive to both readers and writers.
Defined in:
rw_lock.crConstructors
Instance Method Summary
-
#lock_read(timeout : Time::Span) : Bool
EXPERIMENTAL The timeout feature is experimental.
- #lock_read : Nil
-
#lock_read(timeout : Time::Span, &) : Bool
EXPERIMENTAL The timeout feature is experimental.
- #lock_read(&) : Nil
-
#lock_write(timeout : Time::Span) : Bool
EXPERIMENTAL The timeout feature is experimental.
- #lock_write : Nil
-
#lock_write(timeout : Time::Span, &) : Bool
EXPERIMENTAL The timeout feature is experimental.
- #lock_write(&) : Nil
- #unlock_read : Nil
- #unlock_write : Nil