enable GLib threading
Call g_thread_init() from main() to enable the GLib features which make it thread safe.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user