Module: Ons::LMFAO

Defined in:
lib/ons/lmfao.rb

Overview

the LMFAO library

Class Method Summary collapse

Class Method Details

.event_threadThread?

Get the global LMFAO event thread.

Returns:

  • (Thread, nil)

    returns the event thread



7
8
9
# File 'lib/ons/lmfao.rb', line 7

def self.event_thread
  @event_thread
end

.start_event_threadThread

Start the global LMFAO event thread manually.

Returns:

  • (Thread)

    returns a created/existed event thread



14
15
16
# File 'lib/ons/lmfao.rb', line 14

def self.start_event_thread
  @event_thread ||= Internal::LMFAO.start_event_thread
end