#196: GVL is held when invoking blocking run-loop related calls
-----------------------------------+----------------------------------------
Reporter: peter.ro...@… | Owner: lsansone...@…
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/>
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel