Class: Mount::Lock
- Inherits:
-
Object
- Object
- Mount::Lock
- Defined in:
- lib/rbmount/lock.rb
Instance Method Summary collapse
- #block_signals ⇒ Object
- #finalize ⇒ Object
-
#initialize(datafile, id) ⇒ Lock
constructor
A new instance of Lock.
- #lock_file ⇒ Object
- #to_c ⇒ Object
- #unlock_file ⇒ Object
Constructor Details
Instance Method Details
#block_signals ⇒ Object
39 40 41 |
# File 'lib/rbmount/lock.rb', line 39 def block_signals Mount::C.mnt_lock_block_signals(@pointer) end |
#finalize ⇒ Object
43 44 45 |
# File 'lib/rbmount/lock.rb', line 43 def finalize Mount::C.mnt_free_lock(@pointer) end |
#lock_file ⇒ Object
31 32 33 |
# File 'lib/rbmount/lock.rb', line 31 def lock_file Mount::C.mnt_lock_file(@pointer) end |
#to_c ⇒ Object
47 48 49 |
# File 'lib/rbmount/lock.rb', line 47 def to_c @pointer end |