mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-23 11:28:13 +01:00
126347b694
[dgit import orig notmuch_0.38.2.orig.tar.xz]
21 lines
351 B
C++
21 lines
351 B
C++
#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);
|
|
}
|