[MacRuby] #179: Calling Regexp#match from ObjC in a background thread hangs
#179: Calling Regexp#match from ObjC in a background thread hangs -------------------------------+-------------------------------------------- Reporter: tjw@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: -------------------------------+-------------------------------------------- Calling this from a foreground thread works fine, but if I call Regexp#match from ObjC in a background thread, it hangs. Attaching example. -- Ticket URL: <http://www.macruby.org/trac/ticket/179> MacRuby <http://macruby.org/>
#179: Calling Regexp#match from ObjC in a background thread hangs -------------------------------+-------------------------------------------- Reporter: tjw@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: MacRuby 0.6 Component: MacRuby | Resolution: fixed Keywords: | -------------------------------+-------------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed * milestone: => MacRuby 0.6 Comment: The problem seems to be fixed in trunk as of r3858. This version of MacRuby features thread-safe regexps. I had to change the sample code though to use performRubySelector: though. Calling some Ruby selectors that have negative arities (like #match) using the ObjC ABI does not work. {{{ id match = [regex performRubySelector:@selector(match:) withArguments: line, NULL]; }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/179#comment:2> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby