Module: Voicemeeter::Worker

Includes:
Logging
Included in:
Base
Defined in:
lib/voicemeeter/worker.rb

Instance Method Summary collapse

Methods included from Logging

#logger

Instance Method Details

#end_event_threadsObject



57
58
59
60
61
62
# File 'lib/voicemeeter/worker.rb', line 57

def end_event_threads
  if running?
    @running = false
    @producer.join
  end
end

#init_event_threadsObject



51
52
53
54
55
# File 'lib/voicemeeter/worker.rb', line 51

def init_event_threads
  que = Queue.new
  @running = true
  init_worker(que) and init_producer(que)
end

#running?Boolean

Returns:

  • (Boolean)


47
48
49
# File 'lib/voicemeeter/worker.rb', line 47

def running?
  @producer&.alive?
end