зеркало из https://github.com/mozilla/pjs.git
Bug 285591 - Do not cache JNIEnv structure. Instead, query from JavaVM. Not part of default build. a=mkaply
Original committer: pedemont%us.ibm.com Original revision: 1.27 Original date: 2005/05/03 20:15:35
This commit is contained in:
Родитель
88ac159a77
Коммит
4dbffceacc
|
@ -302,6 +302,15 @@ nsresult GetIIDForMethodParam(nsIInterfaceInfo *iinfo,
|
|||
* JNI helper functions
|
||||
*******************************/
|
||||
|
||||
/**
|
||||
* Returns a pointer to the appropriate JNIEnv structure. This function is
|
||||
* useful in callbacks or other functions that are not called directly from
|
||||
* Java and therefore do not have the JNIEnv structure passed in.
|
||||
*
|
||||
* @return pointer to JNIEnv structure for current thread
|
||||
*/
|
||||
JNIEnv* GetJNIEnv();
|
||||
|
||||
/**
|
||||
* Constructs and throws an exception. Some error codes (such as
|
||||
* NS_ERROR_OUT_OF_MEMORY) are handled by the appropriate Java exception/error.
|
||||
|
|
Загрузка…
Ссылка в новой задаче