static void AssertIsMainThread( string memberName )

Summary

Throws an exception if not called from the main thread. Useful for enforcing thread safety on main-thread-only APIs.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.