开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜