зеркало из https://github.com/mozilla/gecko-dev.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:
Родитель
d94f7ea976
Коммит
17c5f328c3
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче