#479: Need GCD wrapper for Process Sources
----------------------------------------+-----------------------------------
 Reporter:  ernest.prabha...@…          |       Owner:  lsansone...@…        
     Type:  defect                      |      Status:  new                  
 Priority:  blocker                     |   Milestone:  MacRuby 0.5          
Component:  MacRuby                     |    Keywords:                       
----------------------------------------+-----------------------------------

Comment(by ernest.prabha...@…):

 Replying to [comment:1 ernest.prabha...@…]:
 > 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/>

_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Reply via email to