Functions for managing a pool of database connections. More...
#include "../../dprint.h"#include "db_pool.h"
Go to the source code of this file.
Definition in file srdb1/db_pool.c.
| id | searched id |
Definition at line 43 of file srdb1/db_pool.c.
References cmp_db_id(), pool_con::id, pool_con::next, and pool_con::ref.
Referenced by db_do_init2().


| void pool_insert | ( | struct pool_con * | con | ) |
| con | the inserted connection |
Definition at line 68 of file srdb1/db_pool.c.
References pool_con::next.
Referenced by db_do_init2().

| int pool_remove | ( | struct pool_con * | con | ) |
The function returns 0 if the connection should still be kept open because some other module is still using it. The function returns -1 if the connection is not in the pool.
| con | connection that should be removed |
Definition at line 87 of file srdb1/db_pool.c.
References pool_con::next, and pool_con::ref.
Referenced by db_do_close().

1.7.1