1
这是Debian的testing- 2.6.38
,为什么g_thread_supported在我的机器返回false
glib-2.24
(包括g线程)
与pkg-config --cflags/--libs glib-2.0 gthread-2.0
检查我试着写使用glib
线程池的一些代码,但它是如此奇怪的是g_thread_supported
返回false
。
顺便说一下,pthread
库(a,so,h)已经安装!
谢谢,我明白g_thread_supported错误。 – user496894 2011-04-10 15:48:03
我在g_thread_supported后写了g_thread_init。 – user496894 2011-04-10 15:48:31
那么g_thread_supported和g_thread_get_initialized有什么区别。 – user496894 2011-04-11 02:20:13