why g_thread_supported return false in my machine
It's Debian testing- 2.6.38
,
glib-2.24
( including gthread)
checking with pkg-config 开发者_JS百科--cflags/--libs glib-2.0 gthread-2.0
I tried to write some code using glib
thread pool, but it's so weird that g_thread_supported
return false
.
By the way, pthread
library(a, so, h) have been installed!
Make sure you've previously run g_thread_init, which is the function that initializes glib's threading framework.
... from g_thread_supported
's documentation ...
This function returns TRUE if the thread system is initialized, and FALSE if it is not.
精彩评论