Class: GLib::MainLoop

Inherits:
Object
  • Object
show all
Defined in:
lib/ffi-glib/main_loop.rb

Overview

Overrides for GMainLoop, GLib’s event loop

Defined Under Namespace

Classes: ThreadEnabler

Instance Method Summary collapse

Instance Method Details

#run_with_thread_enablerObject Also known as: run



36
37
38
39
40
41
42
43
44
# File 'lib/ffi-glib/main_loop.rb', line 36

def run_with_thread_enabler
  case RUBY_ENGINE
  when 'jruby'
  when 'rbx'
  else # 'ruby' most likely
    ThreadEnabler.instance.setup_idle_handler
  end
  run_without_thread_enabler
end