Re: [MacRuby] #664: MacRuby Crashes When Scheduling a Block to Run on the Main Thread from a Background Thread
#664: MacRuby Crashes When Scheduling a Block to Run on the Main Thread from a Background Thread ---------------------------------+------------------------------------------ Reporter: dylan@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: MacRuby 0.8 Component: MacRuby | Resolution: fixed Keywords: #reduction | ---------------------------------+------------------------------------------ Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed * milestone: MacRuby 1.0 => MacRuby 0.8 Comment: Should be fixed in r4987. {{{ $ cat t2.rb framework 'Cocoa' NSApplication.sharedApplication def main_thread( &block ) block.performSelectorOnMainThread( 'call', withObject: nil, waitUntilDone: true ) end Thread.new do main_thread do [1,2,3].each {|i| puts i } end end NSApp.run $ ./miniruby t2.rb 1 2 3 ^C }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/664#comment:11> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby