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