Hi everybody.
I wonder if anyone know how the function 'g_timeout_add' works.
I wrote a little test like this:
/* test.cc */
#include <glib.h>
#include <iostream>
gboolean
callback (gpointer data) {
cout << "called" << endl;
return TRUE;
}
int
main() {
g_timeout_add(1000, callback, NULL);
while (1);
}
But it seemed that the function 'callback' had never been called.
Does anyone know why this happens?
Thanks in advance.
BTW: My system is a Redhat 6.1 box with glib-1.2.5.
_____________________________________________
һ·�����㣬��һ��ҲԸ�⣡
--Ϊ��ϲ����֧�ֵ�263�׶����ߣ�http://www.263.net��ͶһƱ��
��ҪͶƱ����http://fsurvey.cnnic.net.cn/survey/index.html��
_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list