[MacRuby-devel] [MacRuby] #479: Need GCD wrapper for Process Sources
MacRuby
ruby-noreply at macosforge.org
Fri Dec 4 11:04:15 PST 2009
#479: Need GCD wrapper for Process Sources
----------------------------------------+-----------------------------------
Reporter: ernest.prabhakar@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: blocker | Milestone: MacRuby 0.5
Component: MacRuby | Keywords:
----------------------------------------+-----------------------------------
Comment(by ernest.prabhakar@…):
Replying to [comment:1 ernest.prabhakar@…]:
> I was being overly elaborate. The API should just take a PID not a
Process::Status. Gotta get away from thinking in terms of static types...
So, the revised proposal is for something like:
process_mask = Dispatch::Source::ProcessEvent.new(:exit, :exec, :reap,
:signal)
process_mask.exit = false
proc_src = Dispatch::Source.for_process(queue, pid, process_mask) do
|event|
if event.exec then "Do something"
end
--
Ticket URL: <http://www.macruby.org/trac/ticket/479#comment:2>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list