logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

mongoc_client_t *

Author

       MongoDB, Inc

Parameters

pool: A mongoc_client_pool_t.

Returns

       A mongoc_client_t if one is immediately available, otherwise NULL.

Synopsis

          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.

       NOTE:
          Return  a  checked out mongoc_client_t to the pool with mongoc_client_pool_push() quickly to encourage
          reuse of clients among threads.

Thread Safety

       This function is safe to call from multiple threads.

See Also