notmuch/lib/init.cc
David Bremner 126347b694 Import notmuch_0.38.2.orig.tar.xz
[dgit import orig notmuch_0.38.2.orig.tar.xz]
2023-12-01 07:51:09 -04:00

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);
}