Ticket #196 (closed defect: fixed)
GVL is held when invoking blocking run-loop related calls
| Reported by: | peter.royal@… | Owned by: | lsansonetti@… |
|---|---|---|---|
| Priority: | major | Milestone: | MacRuby 0.5 |
| Component: | MacRuby | Keywords: | gvl lock runloop |
| Cc: |
Description
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.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


