Re: Multi-threading



Along these same lines, I would like to do:

  while( Gtk::Main::wait_until_events_pending())
  {
     synchronized( gtk_lock )
     {
        while( Gtk::Main::events_pending())
           Gtk::Main::iteration();
     }
  }

But I can't find a method that will block until
an event is pending, without processing that event.
Or, is it a problem to even wait for events to be
pending if another thread is updating gtk stuff
inside another block synchronized to my gtk_lock?

Doug MacKenzie
doug mobile-intelligence com






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]