Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
259c6ed1
Commit
259c6ed1
authored
Nov 05, 2008
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable GLib threading
Call g_thread_init() from main() to enable the GLib features which make it thread safe.
parent
06f9b6c3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
configure.ac
configure.ac
+1
-1
main.c
src/main.c
+3
-0
No files found.
configure.ac
View file @
259c6ed1
...
...
@@ -274,7 +274,7 @@ AC_CHECK_LIB(nsl,gethostbyname,MPD_LIBS="$MPD_LIBS -lnsl",)
AC_CHECK_LIB(m,exp,MPD_LIBS="$MPD_LIBS -lm",)
AC_CHECK_FUNCS(setenv)
PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.4],,
PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.4
gthread-2.0
],,
[AC_MSG_ERROR([glib-2.4 is required])])
dnl doesn't work for systems that don't have CODESET like OpenBSD
...
...
src/main.c
View file @
259c6ed1
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment