[MacRuby] #478: Need GCD wrapper for custom sources
#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/ManPag... 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/>
#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: ----------------------------------------+----------------------------------- Comment(by ernest.prabhakar@…): Or maybe even just: adder << data orer << data -- Ticket URL: <http://www.macruby.org/trac/ticket/478#comment:1> MacRuby <http://macruby.org/>
#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: ----------------------------------------+----------------------------------- Comment(by ernest.prabhakar@…): Or even better: adder += data orer ||= data They don't have to be the same, and this would accurately indicate the semantics. -- Ticket URL: <http://www.macruby.org/trac/ticket/478#comment:2> MacRuby <http://macruby.org/>
#478: Need GCD wrapper for custom sources ----------------------------------------+----------------------------------- Reporter: ernest.prabhakar@… | Owner: ernest.prabhakar@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 0.5 Component: MacRuby | Keywords: ----------------------------------------+----------------------------------- Changes (by ernest.prabhakar@…): * owner: lsansonetti@… => ernest.prabhakar@… -- Ticket URL: <http://www.macruby.org/trac/ticket/478#comment:3> MacRuby <http://macruby.org/>
#478: Need GCD wrapper for custom sources ----------------------------------------+----------------------------------- Reporter: ernest.prabhakar@… | Owner: ernest.prabhakar@… Type: defect | Status: closed Priority: blocker | Milestone: MacRuby 0.5 Component: MacRuby | Resolution: fixed Keywords: | ----------------------------------------+----------------------------------- Changes (by ernest.prabhakar@…): * status: new => closed * resolution: => fixed Comment: Fixed on or before r3267 along with specs and rdoc. -- Ticket URL: <http://www.macruby.org/trac/ticket/478#comment:4> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby