modules/portlib/src/main/native/port/shared/hyexit.c File Reference


Detailed Description

Process shutdown.

#include <stdlib.h>
#include "hyport.h"

Functions

I_32 VMCALL hyexit_get_exit_code (struct HyPortLibrary *portLibrary)
 Block until the portlibary has been exited and return the error code.
void VMCALL hyexit_shutdown_and_exit (struct HyPortLibrary *portLibrary, I_32 exitCode)
 Terminate a process.
void VMCALL hyexit_shutdown (struct HyPortLibrary *portLibrary)
 PortLibrary shutdown.
I_32 VMCALL hyexit_startup (struct HyPortLibrary *portLibrary)
 PortLibrary startup.


Function Documentation

I_32 VMCALL hyexit_get_exit_code ( struct HyPortLibrary portLibrary  ) 

Block until the portlibary has been exited and return the error code.

Parameters:
[in] portLibrary The port library
Returns:
exit code.
Note:
Most implementations will be empty.

void VMCALL hyexit_shutdown ( struct HyPortLibrary portLibrary  ) 

PortLibrary shutdown.

This function is called during shutdown of the portLibrary. Any resources that were created by hyexit_startup should be destroyed here.

Parameters:
[in] portLibrary The port library
Note:
Most implementations will be empty.

void VMCALL hyexit_shutdown_and_exit ( struct HyPortLibrary portLibrary,
I_32  exitCode 
)

Terminate a process.

Perform any shutdown which is absolutely necessary before terminating the process, and terminate the process. Unblock any callers to hyexit_get_exit_code

Parameters:
[in] portLibrary The port library
[in] exitCode The exit code to be used to terminate the process.

I_32 VMCALL hyexit_startup ( struct HyPortLibrary portLibrary  ) 

PortLibrary startup.

This function is called during startup of the portLibrary. Any resources that are required for the exit operations may be created here. All resources created here should be destroyed in hyexit_shutdown.

Parameters:
[in] portLibrary The port library
Returns:
0 on success, negative error code on failure. Error code values returned are
  • HYPORT_ERROR_STARTUP_EXIT
Note:
Most implementations will simply return success.


Genereated on Tue Dec 9 14:12:59 2008 by Doxygen.

(c) Copyright 2005, 2008 The Apache Software Foundation or its licensors, as applicable.