How g_timeout_add works?
- From: "顾煜" <guyu 263 net>
- To: gtk-list gnome org
- Subject: How g_timeout_add works?
- Date: Tue, 4 Jul 2000 16:20:27 +0800 (CST)
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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]