vern@2006-09-11:/var% ls tags

Glib::Cond::timed_wait

申明一个Glib::TimeVal timeout变量 然后 while(yourcond) {   timeout.assign_current_time();   timeout.add_seconds(2);  // 2 seconds   ...timed_wait(*obj, timeout); }