=head1 NAME
-memcached_pool_create, memcached_pool_destroy, memcached_pool_push, memcached_pool_pop
+memcached_pool_create, memcached_pool_destroy, memcached_pool_push, memcached_pool_pop - Manage pools
=head1 LIBRARY
memcached_pool_st *memcached_pool_create(memcached_st* mmc, int initial, int max);
memcached_st* memcached_pool_destroy(memcached_pool_st* pool);
- memcached_st* memcached_pool_pop(memcached_pool_st* pool, bool block);
- void memcached_pool_push(memcached_pool_st* pool, memcached_st *mmc);
+ memcached_st* memcached_pool_pop(memcached_pool_st* pool, bool block, memcached_return *rc);
+ memcached_return memcached_pool_push(memcached_pool_st* pool, memcached_st *mmc);
memcached_st *memcached_create (memcached_st *ptr);
ownership of the pointer to the caller.
memcached_pool_pop() is used to grab a connection structure from the
-connection pool. The block argument specifies if the function should
-block and wait for a connection structure to be available if we try to
-exceed the maximum size.
+connection pool. The block argument specifies if the function should
+block and wait for a connection structure to be available if we try
+to exceed the maximum size.
memcached_pool_push() is used to return a connection structure back to the pool.
use it returns NULL.
memcached_pool_pop() returns a pointer to a memcached_st structure
-from the pool (or NULL if an allocation cannot be satisfied).
+from the pool (or NULL if an allocation cannot be satisfied).
+
+memcached_pool_push() returns MEMCACHED_SUCCESS upon success.
=head1 HOME