.\" Man page generated from reStructuredText. . .TH "MONGOC_CLIENT_POOL_DESTROY" "3" "Jun 04, 2021" "1.17.6" "libmongoc" .SH NAME mongoc_client_pool_destroy \- mongoc_client_pool_destroy() . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .SH SYNOPSIS .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C void mongoc_client_pool_destroy (mongoc_client_pool_t *pool); .ft P .fi .UNINDENT .UNINDENT .sp Release all resources associated with \fBpool\fP, including freeing the structure. .sp All \fBmongoc_client_t\fP objects obtained from \fBmongoc_client_pool_pop()\fP from \fBpool\fP must be pushed back onto the pool with \fBmongoc_client_pool_push()\fP prior to calling \fBmongoc_client_pool_destroy()\fP\&. .sp 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. .SH PARAMETERS .INDENT 0.0 .IP \(bu 2 \fBpool\fP: A \fBmongoc_client_pool_t\fP\&. .UNINDENT .SH AUTHOR MongoDB, Inc .SH COPYRIGHT 2017-present, MongoDB, Inc .\" Generated by docutils manpage writer. .