Skip site navigation (1)Skip section navigation (2)

  
 
  

home | help
MONGOC_INIT(3)			    libmongoc			  MONGOC_INIT(3)

SYNOPSIS
	void
	mongoc_init (void);

DESCRIPTION
     Initialize  the  MongoDB  C Driver by calling mongoc_init() exactly once at
     the beginning of your program. It is responsible  for  initializing  global
     state such as process counters, SSL, and threading primitives.

     Exception	to  this is mongoc_log_set_handler(), which should be called be-
     fore mongoc_init() or some log traces would not use your log handling func-
     tion. See Custom Log Handlers for a detailed example.

     Call mongoc_cleanup() exactly once at the end of your  program  to  release
     all  memory  and other resources allocated by the driver. You must not call
     any other MongoDB C Driver  functions  after  mongoc_cleanup().  Note  that
     mongoc_init() does not reinitialize the driver after mongoc_cleanup().

AUTHOR
     MongoDB, Inc

COPYRIGHT
     2009-present, MongoDB, Inc.

1.30.8				  Aug 27, 2026			  MONGOC_INIT(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=mongoc_init&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help