1BSON_CONTEXT_NEW(3)                 libbson                BSON_CONTEXT_NEW(3)
2
3
4

SYNOPSIS

6          bson_context_t *
7          bson_context_new (bson_context_flags_t flags);
8

PARAMETERS

10flags: A bson_context_flags_t.
11
12       The  following  flags may be used: * BSON_CONTEXT_NONE meaning creating
13       ObjectIDs  with  this  context  is  not  a  thread-safe  operation.   *
14       BSON_CONTEXT_DISABLE_PID_CACHE  meaning  creating  ObjectIDs  will also
15       check if the process has changed by calling getpid() on every  ObjectID
16       generation.
17
18       The following flags are deprecated and have no effect:
19
20BSON_CONTEXT_DISABLE_HOST_CACHE
21
22BSON_CONTEXT_THREAD_SAFE
23
24BSON_CONTEXT_USE_TASK_ID
25

DESCRIPTION

27       Creates    a   new   bson_context_t.   This   is   rarely   needed   as
28       bson_context_get_default() serves most use-cases.
29

RETURNS

31       A  newly  allocated  bson_context_t   that   should   be   freed   with
32       bson_context_destroy().
33

AUTHOR

35       MongoDB, Inc
36
38       2017-present, MongoDB, Inc
39
40
41
42
431.25.1                           Nov 08, 2023              BSON_CONTEXT_NEW(3)
Impressum