Gem Call
This helper class is intended for placing calls on the same thread as the map engine runs on and the purpose is to solve concurrence read/write calls. Avoid using the SDK without placing calls on other thread than the engine one!
Properties
Functions
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.
Often used before upcoming calls that requires to run on GEMSdkThread or GLThread. This method is not required to be used. It is an useful tool for avoiding wrong thread problems. If this method throws exception then the upcoming calls would be placed on a wrong thread.
Executing the task on sdk thread. The task will run async on sdk thread. If callee thread is different than sdk thread then it will wait until task finishes. If callee thread is the same with sdk thread then the task will run immediately.
Gets the GEM SDK's engine thread id.
Returns true if the callee thread is the same with GemSDK Thread else false.
Posts the task on sdk thread. The task will run async on sdk call. Post will happen without any delay.
Posts the task on sdk thread. The task will run async on sdk call. The task would be posted with delay in milliseconds.