PSA: Don't start a second NSXMLParser on the same thread where another NSXMLParser is already running, or you will have a bad time.
@mjtsai Actually, concurrent may be fine. Not like GCD is going to call you twice at the same time on the same thread.
-
-
@boredzo You can't ensure that they won't be interleaved on the same thread. But it's OK, I guess, since not called from a callback. -
@mjtsai I don't know of a circumstance where GCD would call you on some thread while that thread is already doing something. - View other replies
-
@boredzo If there were per-thread state, I could not use separate queues per document. But it's moot since you say documents are fine. -
@mjtsai There is per-thread state, which is the problem. But only during parsing.
-
-
@boredzo In that case, it is easy to confine two objects to separate threads. But if you confine to separate serial queues…
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Petrifying Horror
Michael Tsai