Re: How to write a procedure that can be stopped
- From: Jan-Marek Glogowski <glogow stud fbi fh-darmstadt de>
- To: Zbigniew Galias <galias ucsd edu>
- Cc: <gtk-list gnome org>
- Subject: Re: How to write a procedure that can be stopped
- Date: Sat, 28 Jul 2001 22:42:47 +0200 (CEST)
Hi Zbigniew
I think you need something like the following code snippet.
gboolean kill_funtion = FALSE;
...
void foo()
{
while (!kill_funtion) {
...
// Process all pending events in gtk_main()
while (g_main_iteration(FALSE));
}
kill_funtion = FALSE;
}
void button_event(...)
{
kill_function = TRUE;
}
Bye
Jan-Marek
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]