1MONGOC_CLEANUP(3)                  libmongoc                 MONGOC_CLEANUP(3)
2
3
4

NAME

6       mongoc_cleanup - mongoc_cleanup()
7

SYNOPSIS

9          void
10          mongoc_cleanup (void);
11

DESCRIPTION

13       Initialize  the MongoDB C Driver by calling mongoc_init exactly once at
14       the beginning of your  program.  It  is  responsible  for  initializing
15       global state such as process counters, SSL, and threading primitives.
16
17       Exception  to  this is mongoc_log_set_handler(), which should be called
18       before mongoc_init() or some log traces would not use your log handling
19       function. See Custom Log Handlers for a detailed example.
20
21       Call  mongoc_cleanup exactly once at the end of your program to release
22       all memory and other resources allocated by the driver.  You  must  not
23       call  any  other  MongoDB C Driver functions after mongoc_cleanup. Note
24       that mongoc_init does not reinitialize the driver after mongoc_cleanup.
25

AUTHOR

27       MongoDB, Inc
28
30       2017-present, MongoDB, Inc
31
32
33
34
351.20.0                           Nov 18, 2021                MONGOC_CLEANUP(3)
Impressum