mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-24 03:48:10 +01:00
22 lines
351 B
C++
22 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);
|
||
|
}
|