notmuch.git  about / heads / tags
Unnamed repository; edit this file 'description' to name the repository.
blob cf29200fedaa52dcd6fc2f9292ef04f3a5248ac7 351 bytes (raw)
name: lib/init.cc 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
 
#include "notmuch-private.h"

#include <mutex>

static void do_init ()
{
    /* Initialize the GLib type system and threads */
#if ! GLIB_CHECK_VERSION (2, 35, 1)
    g_type_init ();
#endif

    g_mime_init ();
    _notmuch_filter_init ();
}

void
_notmuch_init ()
{
    static std::once_flag initialized;
    std::call_once (initialized, do_init);
}

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

git clone https://yhetil.org/notmuch.git