[MacRuby-devel] [MacRuby] #196: GVL is held when invoking blocking run-loop related calls
MacRuby
ruby-noreply at macosforge.org
Mon Jan 5 22:13:54 PST 2009
#196: GVL is held when invoking blocking run-loop related calls
-----------------------------------+----------------------------------------
Reporter: peter.royal@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: major | Milestone: MacRuby 0.4
Component: MacRuby | Keywords: gvl lock runloop
-----------------------------------+----------------------------------------
the Ruby GVL is held when using a NSRunLoop from a secondary thread.
if i change my code from:
run_loop.runMode(NSDefaultRunLoopMode, beforeDate: NSDate.distantFuture)
to:
run_loop.runMode(NSDefaultRunLoopMode, beforeDate:
NSDate.dateWithTimeIntervalSinceNow(1))
i can get a "slow motion" UI, as the main thread gets blocked every other
second.
this is with r776 on the MacRuby trunk
--
Ticket URL: <http://www.macruby.org/trac/ticket/196>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list