Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/src/share/npt/README.txt
38767 views
1README: For NPT Library.2------------------------34To use this Native Platform Toolkit library, you need to add5-Isrc/share/npt and -I/src/${platform}/npt (platform is solaris or windows)6to your compilation lines.78To initialize/use the library:910#include "npt.h"1112NptEnv *npt;1314NPT_INITIALIZE(&npt, NPT_VERSION, NULL);15if (npt == NULL) {16FATAL_ERROR_MESSAGE(("Unable to gain access to Npt library"));17}1819/* To use the npt utf functions, they require initialization */20npt->utf = (npt->utfInitialize)(NULL);21if (npt->utf == NULL) {22FATAL_ERROR_MESSAGE(("Unable to gain access to Npt utf functions"));23}2425...262728/* After all uses is done, it can be terminated, however, if the29* process will be exiting anyway it isn't necessary, and if30* you have other threads running that might use these handles31* you will need to wait here until all those threads have terminated.32* So in general, termination can be a pain and slow your process33* termination down.34*/35(npt->utfTerminate)(npt->utf,NULL);36NPT_TERMINATE(&npt, NULL);3738394041