|
libmongo-client 0.1.4
|
MongoDB connection pool API implementation. More...
#include <errno.h>#include <string.h>#include <glib.h>#include <mongo.h>#include "libmongo-private.h"
Go to the source code of this file.
Data Structures | |
| struct | mongo_sync_pool |
| Opaque synchronous pool object. More... | |
Functions | |
| mongo_sync_pool * | mongo_sync_pool_new (const gchar *host, gint port, gint nmasters, gint nslaves) |
| Create a new synchronous connection pool. | |
| void | mongo_sync_pool_free (mongo_sync_pool *pool) |
| Close and free a synchronous connection pool. | |
| mongo_sync_pool_connection * | mongo_sync_pool_pick (mongo_sync_pool *pool, gboolean want_master) |
| Pick a connection from a synchronous connection pool. | |
| gboolean | mongo_sync_pool_return (mongo_sync_pool *pool, mongo_sync_pool_connection *conn) |
| Return a connection to the synchronous connection pool. | |
MongoDB connection pool API implementation.
Definition in file mongo-sync-pool.c.
1.7.4