Re: poll with timeout 0 in main loop
- From: Chris Vine <chris cvine freeserve co uk>
- To: "Juan Pablo L." <jpablolorenzetti hotmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: poll with timeout 0 in main loop
- Date: Fri, 22 Oct 2010 13:53:55 +0100
On Fri, 22 Oct 2010 10:37:01 +0000
Juan Pablo L. <jpablolorenzetti hotmail com> wrote:
i attached the code but did not make thru, here is the server code:
Something odd is going on.
I see you are using GIOChannel not to do any reading, but in order to
notify you that a connection is available. poll()/select() of course
support this in unix-like systems, but I don't know if GIOChannel
does (I have never tried). Possibly it only works if you set the channel
as non-blocking with g_io_channel_set_flags() rather than by
manipulating the file descriptor directly, which you have done. Again,
I don't know.
Sending snippets of code really isn't going to help. It could of
course be other things, such as you not having initialized glib for
threads correctly. You need to send the simplest test case which
demonstrates the problem, in compilable form: given the nature of
the problem you should be able to reproduce it with very simple code.
Chris
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]