RE: resetting timeout source

2011-01-05 Thread Juan Pablo L .
.org/~dbo/compiz-with-glib-mainloop/tree/src/timer.cpp?h=glibmm-experimental#n30 > (albeit it is glibmm, but you should be able to get the idea and > translate it to regular glib, this is essentially what I did in > reverse) > > > On 12/25/2010 12:48 AM, Juan Pablo L. wrote: >

RE: resetting timeout source

2011-01-05 Thread Juan Pablo L .
x27;reset' the timer without > stopping it first. > > On 12/25/2010 12:48 AM, Juan Pablo L. wrote: > > > > Hi, i m making an application which needs to perform a small task evey X > > secs, it will disconnect from a server if X seconds have passed without the &g

resetting timeout source

2010-12-24 Thread Juan Pablo L .
Hi, i m making an application which needs to perform a small task evey X secs, it will disconnect from a server if X seconds have passed without the aplication sending anything to the server, but if before completing the X secs i send something to the server i have to reset the timer for anothe

resetting timeout source

2010-12-24 Thread Juan Pablo L .
Hi, i m making an application which needs to perform a small task evey X secs, it will disconnect from a server if X seconds have passed without the aplication sending anything to the server, but if before completing the X secs i send something to the server i have to reset the timer for anothe

RE: Is there any method to create a web interface from GTK+?

2010-11-09 Thread Juan Pablo L .
you can use Wt which is a c++ framework that lets you make web pages like coding GUI interfaces. have a look at it. http://www.webtoolkit.eu/wt > From: monch...@hotmail.com > To: gtk-app-devel-list@gnome.org > Subject: Is there any method to create a web interface from GTK+? > Date: Tue, 9 N

gthreads vs pthread

2010-10-26 Thread Juan Pablo L .
Hello, i m using threads in a glib-only project, a service daemon, i have implemented them using GThreads, but i see now that GThreads is only a wrapper around pthreads (with the corresponding overhead from doing so) and does not provide any additional benefit (if i dont mistake the only real b

RE: poll with timeout 0 in main loop

2010-10-22 Thread Juan Pablo L .
Oct 2010 13:53:55 +0100 > Chris Vine wrote: > > > On Fri, 22 Oct 2010 10:37:01 + > > Juan Pablo L. 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

RE: poll with timeout 0 in main loop

2010-10-22 Thread Juan Pablo L .
rs, sometimes the strings as containers and of course, the mail loop :) > Date: Fri, 22 Oct 2010 10:17:30 +0100 > From: ch...@cvine.freeserve.co.uk > To: jpablolorenze...@hotmail.com > CC: maginot.jun...@gmail.com; gtk-app-devel-list@gnome.org > Subject: Re: poll with

RE: poll with timeout 0 in main loop

2010-10-22 Thread Juan Pablo L .
st@gnome.org > Subject: Re: poll with timeout 0 in main loop > > On Fri, 22 Oct 2010 02:57:59 + > Juan Pablo L. wrote: > > hi, this is the code that makes the server socket > [snip] > > There doesn't seem anything especially wrong with this but you have a > lot

RE: poll with timeout 0 in main loop

2010-10-21 Thread Juan Pablo L .
200 Subject: Re: poll with timeout 0 in main loop From: maginot.jun...@gmail.com To: jpablolorenze...@hotmail.com CC: gtk-app-devel-list@gnome.org On Thu, Oct 21, 2010 at 11:27 PM, Juan Pablo L. wrote: Hi, i have a problem with an application i m building with glib-2.24.2 on linux, i create

poll with timeout 0 in main loop

2010-10-21 Thread Juan Pablo L .
Hi, i have a problem with an application i m building with glib-2.24.2 on linux, i create a server socket which i use to create a GIOChannel and add it to a main loop, everything was fine until i found that the application consumes 99.8% of the CPU while waiting for connections (doing nothing e