Re: Problem with GSource and polling
Hey, On Sat, 20 Nov 2010 12:01:47 +0100 Jaroslav Šmíd wrote: > Perhaps he wrote himself some kind of kernel module which provides > pollable file descriptor ... Yep, exactly. > On Sat, Nov 20, 2010 at 9:57 AM, Ardhan Madras wrote: > > Hi Jannis, > > > > I'm sorry but what `kernel module' you are talkin' about?, > > is it the application's module? > > > > Ardhan, > > > > > > --- jan...@xfce.org wrote: > > > > From: Jannis Pohlmann > > To: gtk-app-devel-list@gnome.org > > Subject: Re: Problem with GSource and polling > > Date: Thu, 18 Nov 2010 03:53:20 +0100 > > > > Hi again, > > > > On Thu, 18 Nov 2010 02:26:20 +0100 > > Jannis Pohlmann wrote: > > > >> Hi folks, > >> > >> I have a question about using GSource in combinaton with GPollFD. > > > > Nevermind, I forgot to add poll_wait() in the poll() handler of the > > kernel module that created the file descriptor. Now with that added, > > the GLib main loop wakes up on a poll event even if I am not moving > > the mouse cursor around like crazy in my application window. ;) > > > > - Jannis > > > > > > ___ > > gtk-app-devel-list mailing list > > gtk-app-devel-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list > > > > > > > > _ > > Listen to KNAC, Hit the Home page and Tune In Live! ---> > > http://www.knac.com ___ > > gtk-app-devel-list mailing list > > gtk-app-devel-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list > > > > > ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Problem with GSource and polling
Perhaps he wrote himself some kind of kernel module which provides pollable file descriptor ... On Sat, Nov 20, 2010 at 9:57 AM, Ardhan Madras wrote: > Hi Jannis, > > I'm sorry but what `kernel module' you are talkin' about?, is it the > application's module? > > Ardhan, > > > --- jan...@xfce.org wrote: > > From: Jannis Pohlmann > To: gtk-app-devel-list@gnome.org > Subject: Re: Problem with GSource and polling > Date: Thu, 18 Nov 2010 03:53:20 +0100 > > Hi again, > > On Thu, 18 Nov 2010 02:26:20 +0100 > Jannis Pohlmann wrote: > >> Hi folks, >> >> I have a question about using GSource in combinaton with GPollFD. > > Nevermind, I forgot to add poll_wait() in the poll() handler of the > kernel module that created the file descriptor. Now with that added, > the GLib main loop wakes up on a poll event even if I am not moving the > mouse cursor around like crazy in my application window. ;) > > - Jannis > > > ___ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list > > > > _ > Listen to KNAC, Hit the Home page and Tune In Live! ---> http://www.knac.com > ___ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list > -- Jaroslav Šmíd ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Problem with GSource and polling
Hi Jannis, I'm sorry but what `kernel module' you are talkin' about?, is it the application's module? Ardhan, --- jan...@xfce.org wrote: From: Jannis Pohlmann To: gtk-app-devel-list@gnome.org Subject: Re: Problem with GSource and polling Date: Thu, 18 Nov 2010 03:53:20 +0100 Hi again, On Thu, 18 Nov 2010 02:26:20 +0100 Jannis Pohlmann wrote: > Hi folks, > > I have a question about using GSource in combinaton with GPollFD. Nevermind, I forgot to add poll_wait() in the poll() handler of the kernel module that created the file descriptor. Now with that added, the GLib main loop wakes up on a poll event even if I am not moving the mouse cursor around like crazy in my application window. ;) - Jannis ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list _ Listen to KNAC, Hit the Home page and Tune In Live! ---> http://www.knac.com ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Problem with GSource and polling
Hi again, On Thu, 18 Nov 2010 02:26:20 +0100 Jannis Pohlmann wrote: > Hi folks, > > I have a question about using GSource in combinaton with GPollFD. Nevermind, I forgot to add poll_wait() in the poll() handler of the kernel module that created the file descriptor. Now with that added, the GLib main loop wakes up on a poll event even if I am not moving the mouse cursor around like crazy in my application window. ;) - Jannis ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list