cp_db_connection_pool_set_blocking(3)

cp_dbms(3) cp_dbms cp_dbms(3)

NAME

cp_db_connection_pool_set_blocking - set a connection pool's behavior when a connection is requested and none are available

SYNOPSIS

#include <cprops/db.h>

void cp_db_connection_pool_set_blocking(cp_db_connection_pool *pool, int block);

DESCRIPTION

cp_db_connection_pool_set_blocking sets the block flag on a connection pool to the specified value. If this is non-zero, no connections are available and the connection pool has reached its maximal size, cp_db_connection_pool_get_connection will block until a connection becomes available.

The block flag is not set by default.

SEE ALSO

cp_db_connection_pool_shutdown(3), cp_db_connection_pool_get_connection(3)

MARCH 2006 libcprops