Re: Understanding glib events
- From: Chris Vine <chris cvine freeserve co uk>
- To: R K <cheesemilli gmail com>
- Cc: gtk-list gnome org
- Subject: Re: Understanding glib events
- Date: Tue, 20 Apr 2010 00:46:24 +0100
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]