1MONGOC_CLIENT_POOL_POP(3) libmongoc MONGOC_CLIENT_POOL_POP(3)
2
3
4
6 mongoc_client_pool_pop - mongoc_client_pool_pop()
7
9 mongoc_client_t *
10 mongoc_client_pool_pop (mongoc_client_pool_t *pool);
11
12 Retrieve a mongoc_client_t from the client pool, or create one. The
13 total number of clients that can be created from this pool is limited
14 by the URI option "maxPoolSize", default 100. If this number of clients
15 has been created and all are in use, mongoc_client_pool_pop blocks
16 until another thread returns a client with mongoc_client_pool_push.
17
19 ยท pool: A mongoc_client_pool_t.
20
22 A mongoc_client_t.
23
25 This function is safe to call from multiple threads.
26
28 MongoDB, Inc
29
31 2017-present, MongoDB, Inc
32
33
34
35
361.16.2 Feb 25, 2020 MONGOC_CLIENT_POOL_POP(3)