[MacRuby-devel] [MacRuby] #478: Need GCD wrapper for custom sources
MacRuby
ruby-noreply at macosforge.org
Wed Dec 2 18:10:05 PST 2009
#478: Need GCD wrapper for custom sources
----------------------------------------+-----------------------------------
Reporter: ernest.prabhakar@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: blocker | Milestone: MacRuby 0.5
Component: MacRuby | Keywords:
----------------------------------------+-----------------------------------
While GCD custom sources may seem exotic, they're really just
accumulators.
http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/man3/dispatch_source_create.3.html
http://developer.apple.com/mac/articles/cocoa/introblocksgcd.html
-> Custom Events Example
http://paste.lisp.org/display/86524
The API should just be:
adder = Dispatch::Source.for_adding(queue, mask, &block)
orer = Dispatch::Source.for_oring(queue, mask, &block)
adder.merge (data)
--
Ticket URL: <http://www.macruby.org/trac/ticket/478>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list