X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=docs%2Fmemcached_pool.pod;h=2b464ac226dd8352eae83a2984638728fe2a1a8f;hb=bbd526419742d4a9bb99fcb1a56a80969ebe90fb;hp=c0a818e82d8bdd7141203eba84dc46db18426d7f;hpb=f05cd5b77ca7b17440bfc7ed9f48f7c11d269767;p=awesomized%2Flibmemcached diff --git a/docs/memcached_pool.pod b/docs/memcached_pool.pod old mode 100755 new mode 100644 index c0a818e8..2b464ac2 --- a/docs/memcached_pool.pod +++ b/docs/memcached_pool.pod @@ -1,6 +1,6 @@ =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 @@ -13,8 +13,8 @@ C Client Library for memcached (libmemcachedutil, -lmemcachedutil) 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); @@ -40,9 +40,9 @@ passed as an argument to memcached_pool_create(), and returns the 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. @@ -57,7 +57,9 @@ memcached_st structure used to create the pool. If connections are in 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