Method: Futex#initialize

Defined in:
lib/futex.rb

#initialize(path, log: STDOUT, timeout: 16, sleep: 0.005, lock: path + '.lock', logging: false) ⇒ Futex

Creates a new instance of the class.



74
75
76
77
78
79
80
81
82
# File 'lib/futex.rb', line 74

def initialize(path, log: STDOUT, timeout: 16, sleep: 0.005,
  lock: path + '.lock', logging: false)
  @path = path
  @log = log
  @logging = logging
  @timeout = timeout
  @sleep = sleep
  @lock = lock
end