Functions | |
BOOL | LEVEL_PINCLIENT::PIN_IsProcessExiting () |
VOID | LEVEL_PINCLIENT::PIN_ExitProcess (INT32 exitCode) |
INT | LEVEL_PINCLIENT::PIN_GetPid () |
VOID | LEVEL_PINCLIENT::PIN_ExitApplication (INT32 status) |
|
Terminate the current process after calling the relevant thread and process exit callbacks. This call behaves "as if" the application process itself had executed a process termination system call. It therefore does perform all the finalization actions Pin normally takes on application process exit, including calling registered thread and process fini-functions, unlike PIN_ExitProcess, which exits immediately.
|
|
Terminate the current process immediately, without calling any thread or process fini callbacks that may be registered. (See PIN_ExitApplication, if you want fini callbacks to be called). This function should be used only for abnormal termination of the instrumented process. Normally, the process is terminated when Pin executes a process termination system call on behalf of the application.
|
|
Returns current process id
|
|
Check to see if the current process is about to exit. This function is useful when a tool creates its own threads via the PIN_SpawnInternalThread() function. In such a case, the tool's threads can periodically call PIN_IsProcessExiting() to see if the application is exiting. If so, the thread should either return or call the PIN_ExitThread() function as soon as possible.
|