[gtkmm] Blocking Tasks



Hello,

I would appreciate if someone could help
me in this problem:

I got a program that works with a high
priority recursive task, set up this way:


  static int control() { ... }

  Object::recurse() {
   ...
   if( control() ) recurse();
  }

  Object *obj=new Object;

At some point I call that function and
nothing happens until it finishes:

  obj->recurse();  // now gtkmm is blocked

How can I assembly a circuit like:

  static int control() {
   if( gtkmm_received_some_event )
       respond_to_it_first();
   ...   // and then do like before
  }

I'm with gtkmm-1.2.10.

Silvio



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