DOKK / manpages / debian 10 / libmongoc-doc / mongoc_client_pool_try_pop.3.en
MONGOC_CLIENT_POOL_TRY_POP(3) MongoDB C Driver MONGOC_CLIENT_POOL_TRY_POP(3)

mongoc_client_pool_try_pop - mongoc_client_pool_try_pop()

mongoc_client_t *
mongoc_client_pool_try_pop (mongoc_client_pool_t *pool);


This function is identical to mongoc_client_pool_pop() except it will return NULL instead of blocking for a client to become available.

pool: A mongoc_client_pool_t.

A mongoc_client_t if one is immediately available, otherwise NULL.

This function is safe to call from multiple threads.

MongoDB, Inc

2017-present, MongoDB, Inc

February 23, 2019 1.14.0