bps_shutdown()

Free the platform service resources for the current thread specified by the caller.

Synopsis:

#include <bps/bps.h>
 
BPS_API void bps_shutdown(void)

Since:

BlackBerry 10.0.0

Arguments:

Library:

libbps

Description:

When an application calls the bps_initialize() function multiple times, the application must call the bps_shutdown() function the same number of times. For multi-threaded applications, threads that call the bps_initialize() function should call the bps_shutdown() function prior to the thread terminating.

Resources that are used by the BPS library are freed only after the bps_shutdown() function is called the same number of times that the bps_initialize() function is called. In addition, all callbacks registered with the bps_register_shutdown_handler() function are called. The application must not call any other BPS library functions after this function completes.

Returns:

Nothing.

Last modified: 2013-12-21

comments powered by Disqus