Re: timers

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

 



Ben Johnson wrote:
keep in mind that there is no guarantee that that the timer will fire
"on time".  it will fire as soon as possible, and only during main loop.
So, if one of your functions takes several seconds to complete a task
and doesn't allow gtk events to be processed, your g_timeout callback
will not be called for those several seconds.  I think this is similar
to how POSIX signals work, but they're a little more reliable. :)
If this behaviour is not what he wants, he should fallback to multithreading (w/ all the gdk_threads_enter/leave stuff).

BYtE,
 Diego.
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux