NAME

coreDeinit() -- de-initialize appCORE


SYNOPSIS

include "appcore.h"

int coreDeinit()

DESCRIPTION

The coreDeinit() function terminates appCORE services and transitions appCORE to the "uninitialized" state. appCORE must be in the 'initialilzed' state for this function to succeed. This means the application must have been stopped previously, using the coreAppStop() function. This function returns after all appCORE services have been shutdown and all threads have exited. After this function returns, it is possible to execute coreInit() if desired.

coreDeinit() must be called from the same thread as coreInit(). In a standard appCORE application, both coreInit() and coreDeinit() are called from the process's main thread. Refer to the sample applications for an example of a standard appCORE main() function.


PARAMETERS

none.

RETURN VALUE

If successful, coreDeinit() returns 0. If an error occurs, it returns a value of -1 and sets errno to one of the following values:

errno ValueCondition
ECANCELEDappCORE not in the initialized state.

MULTITHREAD SAFETY LEVEL

MT-safe.


SEE ALSO

Functions:
coreInit() coreLogZoneInit() coreAppStart() coreAppWaitOnStop() coreAppStop()