checkCurrentThread

Often used before upcoming GemCall calls that requires to run on engine thread. This method is not required to be used. It is an useful tool for avoiding wrong thread problems. If this method throws exception then wrong thread will be used to call upcoming GemCall calls.

Throws

if called from other thread.