Module: Clutter::Threads

Defined in:
lib/clutter/threads.rb

Class Method Summary collapse

Class Method Details

.add_idle(priority = nil, &block) ⇒ Object



32
33
34
35
# File 'lib/clutter/threads.rb', line 32

def add_idle(priority=nil, &block)
  priority ||= GLib::PRIORITY_DEFAULT_IDLE
  add_idle_full(priority, &block)
end

.add_idle_fullObject



31
# File 'lib/clutter/threads.rb', line 31

alias_method :add_idle_full, :add_idle

.add_timeout(interval_or_priority, interval = nil, &block) ⇒ Object



21
22
23
24
25
26
27
28
29
# File 'lib/clutter/threads.rb', line 21

def add_timeout(interval_or_priority, interval=nil, &block)
  if interval.nil?
    priority, interval = GLib::PRIORITY_DEFAULT, interval_or_priority
    add_timeout_full(priority, interval, &block)
  else
    priority = interval_or_priority
    add_timeout_full(priority, interval, &block)
  end
end

.add_timeout_fullObject



20
# File 'lib/clutter/threads.rb', line 20

alias_method :add_timeout_full, :add_timeout