mongoc_client_pool_try_pop(3)

mongoc_client_pool_try_pop3

Usage

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.

Parameters

•

pool: A mongoc_client_pool_t.

Returns

A mongoc_client_t if one is immediately available, otherwise NULL.

Thread safety

This function is safe to call from multiple threads.

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

Author

MongoDB, Inc

From libmongoc-doc 1.30.4-1+deb13u3 in Debian 13 (Trixie). Parsed by carta from the page's man source.