cp_db_connection_pool_shutdown(3) - Linux man page

Name

cp_db_connection_pool_shutdown - stop a connection pool

Synopsis

#include <cprops/db.h>

int cp_db_connection_pool_shutdown(cp_db_connection_pool *pool);

Description

cp_db_connection_pool_shutdown closes all open connections in the connection pool pool. The pool itself is not deallocated. To deallocate the pool call cp_db_connection_pool_destroy.

If connections have been obtained from the pool and were not yet released with cp_db_connection_pool_release_connection, the shutdown process blocks until these connections are released.

Return Value

cp_db_connection_pool_shutdown always returns 0.

See Also

cp_db_connection_pool_destroy(3)

Referenced By

cp_db_connection_pool_set_blocking(3), cp_dbms(3)