Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
locklock
master
Locklock
App
Lock
Queue
Built with Crystal 1.9.2
2023-10-07 17:18:59 UTC
class
Locklock::Lock
Locklock::Lock
Reference
Object
Defined in:
locklock/lock.cr
Constructors
.new
(name : String)
Instance Method Summary
#lock!
#locked?
: Bool
#locks_count
: Int32
#name
: String
#synchronize
(&)
#unlock!
Constructor Detail
def self.
new
(name : String)
#
[
View source
]
Instance Method Detail
def
lock!
#
[
View source
]
def
locked?
: Bool
#
[
View source
]
def
locks_count
: Int32
#
[
View source
]
def
name
: String
#
[
View source
]
def
synchronize
(&)
#
[
View source
]
def
unlock!
#
[
View source
]