[MacRuby-devel] [MacRuby] #477: Need GCD wrapper for dispatch_once

MacRuby ruby-noreply at macosforge.org
Fri Dec 18 21:03:07 PST 2009


#477: Need GCD wrapper for dispatch_once
----------------------------------------+-----------------------------------
 Reporter:  ernest.prabhakar@…          |       Owner:  lsansonetti@…        
     Type:  enhancement                 |      Status:  new                  
 Priority:  minor                       |   Milestone:  MacRuby 0.5          
Component:  MacRuby                     |    Keywords:                       
----------------------------------------+-----------------------------------

Comment(by lsansonetti@…):

 That's what I meant by hacking the compiler. The static variable would
 need to be emitted at compilation time. Of course the compiler would need
 to know when the variable should be emitted (which requires an heuristic).
 I'm not sure if dispatch_once() is worth all of that.

 As for emulation, sure, we could potentially provide this in the future
 pure-ruby gcd.rb we discussed earlier today.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/477#comment:8>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list