Re-executes the RNI method on the supplied thread ID for the supplied Java object.
HRESULT __cdecl MarshalCallToJavaThreadId(JAVATID tid, int64_t *pResult);
tid | The thread ID. |
*pResult | The address of the value to be returned upon S_FALSE. |
MarshalCallToJavaThreadId and MarshalCallToJavaObjectHostThread return the following sets of HRESULTs:
S_OK -- The call was successfully marshaled to the target thread. The marshaled call may have generated an exception, which can be checked by calling exceptionOccurred.
S_FALSE -- The call did not require marshaling to the other thread. The currently executing thread is the target thread.
E_<> -- An error occurred inside the MarshalCall API, such as invalid arguments, out of memory, and so on.
The typical use of these APIs is to call the appropriate MarshalCall API and if the HRESULT is S_FALSE, execute the rest of the RNI method; otherwise, return with the value contained in pResult.