class Syn::Mutex

Defined in:

mutex.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(type : Core::Mutex::Type = :checked) #

[View source]

Instance Method Detail

def lock(timeout : Time::Span) : Bool #

EXPERIMENTAL The timeout feature is experimental.


[View source]
def lock : Nil #

[View source]
def synchronize(timeout : Time::Span, &) : Bool #

EXPERIMENTAL The timeout feature is experimental.


[View source]
def synchronize(& : -> U) : U forall U #

[View source]
def try_lock? : Bool #

[View source]
def unlock : Nil #

[View source]