Class: Chan::NullLock
- Inherits:
-
Object
- Object
- Chan::NullLock
- Defined in:
- lib/xchan/null_lock.rb
Overview
Chan::NullLock is a no-op lock that can be used instead of the standard file lock when a lock is not needed
Class Method Summary collapse
-
.lock ⇒ void
This method is a no-op.
-
.lock_nonblock ⇒ void
This method is a no-op.
-
.release ⇒ void
This method is a no-op.
-
.close ⇒ void
This method is a no-op.
-
.locked? ⇒ void
This method always returns false.
Class Method Details
.lock ⇒ void
This method returns an undefined value.
Returns This method is a no-op.
17 18 |
# File 'lib/xchan/null_lock.rb', line 17 def self.lock end |
.lock_nonblock ⇒ void
This method returns an undefined value.
Returns This method is a no-op.
23 24 |
# File 'lib/xchan/null_lock.rb', line 23 def self.lock_nonblock end |
.release ⇒ void
This method returns an undefined value.
Returns This method is a no-op.
29 30 |
# File 'lib/xchan/null_lock.rb', line 29 def self.release end |
.close ⇒ void
This method returns an undefined value.
Returns This method is a no-op.
35 36 |
# File 'lib/xchan/null_lock.rb', line 35 def self.close end |
.locked? ⇒ void
This method returns an undefined value.
Returns This method always returns false.
41 42 43 |
# File 'lib/xchan/null_lock.rb', line 41 def self.locked? false end |