mongoc_client_pool_destroy(3)

mongoc_client_pool_destroy3

Usage

void
mongoc_client_pool_destroy (mongoc_client_pool_t *pool);

Release all resources associated with pool, including freeing the structure.

All mongoc_client_t objects obtained from mongoc_client_pool_pop() from pool must be pushed back onto the pool with mongoc_client_pool_push() prior to calling mongoc_client_pool_destroy().

This method is NOT thread safe, and must only be called by one thread. It should be called once the application is shutting down, and after all other threads that use clients have been joined.

Parameters

•

pool: A mongoc_client_pool_t.

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.