Due to some self induced problems, I was able to crash my iPhone app and received the following error:
Tried to obtain the web lock from a thread other than the main thread or the web thread. This may be a result of calling to UIKit from a secondary thread. Crashing now...
Resolving this problem isn't an issue, but the error message got me thinking...
I know what the main thread is, and I'm aware of how to switch contexts back to it. But, what is this "web thread"? I don't think I've ever heard that terminology before.
The web thread is a single thread shared by all UIWebViews
which temporarily blocks execution on the main thread while it's performing requests.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With