Re: Understanding glib events



On Mon, 19 Apr 2010 20:09:46 +0200
R K <cheesemilli gmail com> wrote:
> So this would mean that, if my callback function would have a sleep
> statement or some simple printf statements, an other event/callback
> function could be executed at the "same" time?

I think your e-mail exchanges are at cross-purposes.  The glib main
loop is a normal event loop.  It executes its callbacks sequentially.
If one blocks, it blocks the loop: normally therefore, you shouldn't
use blocking calls in main loop callbacks.

Chris


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