diff options
author | Max Kellermann <max@duempel.org> | 2008-11-05 18:21:49 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-11-05 18:21:49 +0100 |
commit | 259c6ed1642cd6cc0e5cb8bfcfdeed93150b2e99 (patch) | |
tree | 1e7a63afa637b45fb97aa2ffd1a4816246387820 /src | |
parent | 06f9b6c379db39fc7676df05d40b20c833b63632 (diff) | |
download | mpd-259c6ed1642cd6cc0e5cb8bfcfdeed93150b2e99.tar.gz mpd-259c6ed1642cd6cc0e5cb8bfcfdeed93150b2e99.tar.xz mpd-259c6ed1642cd6cc0e5cb8bfcfdeed93150b2e99.zip |
enable GLib threading
Call g_thread_init() from main() to enable the GLib features which
make it thread safe.
Diffstat (limited to '')
-rw-r--r-- | src/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c index 79b17cda5..e1fc96bdc 100644 --- a/src/main.c +++ b/src/main.c @@ -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); |