enable GLib threading

Call g_thread_init() from main() to enable the GLib features which
make it thread safe.
This commit is contained in:
Max Kellermann
2008-11-05 18:21:49 +01:00
parent 06f9b6c379
commit 259c6ed164
2 changed files with 4 additions and 1 deletions

View File

@@ -382,6 +382,9 @@ int main(int argc, char *argv[])
Options options;
clock_t start;
/* enable GLib's thread safety code */
g_thread_init(NULL);
initConf();
parseOptions(argc, argv, &options);