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
14       at 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 re‐
22       lease all memory and other resources allocated by the driver. You  must
23       not  call  any other MongoDB C Driver functions after mongoc_cleanup().
24       Note  that  mongoc_init()  does  not  reinitialize  the  driver   after
25       mongoc_cleanup().
26

AUTHOR

28       MongoDB, Inc
29
31       2017-present, MongoDB, Inc
32
33
34
35
361.24.3                           Aug 17, 2023                MONGOC_CLEANUP(3)
Impressum