pthread_cond_signal in a callback function



Hi,
I appreciate for help on my way.

By the way,
 I have one more question related on Gtk+.
 I am using pthread with Gtk+.
 Is it possbile using pthread_cond_signal() on a callback fuction like
 below?

 void pthread_A (void *arg)
 {

 ............

 pthread_mutex_lock();
 while () pthread_cond_wait();
 pthread_mutex_unlock();

 ............

 }

  void on_callback_of ()
 {

 ............
 pthread_cond_signal();

 }

 In my program, the pthead_cond_signal () in the callback function,
 on_callback_of(), does not work with pthead_cond_wait() in the pthead
 function.

 Any idea?

 Regards,
Bokyun Na
bkna besta cc




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