- From: Brian Victor <bhv1 psu edu>
- To: gtk-app-devel-list gnome org
- Subject: gdk_input_add behavior
- Date: Mon, 17 Feb 2003 15:45:48 -0500
The quick question: when gdk_input_add is called to monitor a socket for
read activity, will it send an event immediately if there is data in the
The slightly longer question:
I'm working on a cross-platform socket wrapper. In an attempt to reduce
spurious events on all platforms, callbacks are disabled while an event
is being handled, then reenabled once the event has been handled. The
current code looks like this:
Is this a race condition with gdk_input_add() being called prior to the
recv() call? Will there be any behavior change with those calls
reversed like so?
Or does this have the potential to miss an event if data comes in
between recv() and gdk_input_add()?
Thanks in advance!
] [Thread Prev