thread



i have 2 gtkbutton, i'm doing a heavy load process when i click my button1

void
on_button1_clicked (GtkButton *button, gpointer user_data) {

 gdk_threads_enter ();

 while(1) {
    do_heavy_load();
 }

 gdk_threads_leave();

}

how can i stop my process with button2 ?, because the program seems to be waiting button1 callback function to finished executing ?

Thanks
===================================================================================
Selama Bulan Suci Ramadhan, ikuti Netkuis Ramadhan, Lomba Design E-Card, Opini Berhadiah hanya di www.plasa.com
===================================================================================



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