[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: GUI very slow when sleep() called...
- From: Andy <sveikaus worldnet att net>
- To: cyrusp cia com au
- Cc: gtk-app-devel-list gnome org
- Subject: Re: GUI very slow when sleep() called...
- Date: Tue, 03 Oct 2000 17:09:59 -0400
cyrusp@cia.com.au wrote:
>
> Hello,
>
> In an app I'm writing I have to put a usleep(100000) call in my
> code. However when I do this my gui becomes very slow and unresponsive -
> understandibly since I'm doing it in the gtk_main loop...
>
> Is there a way to sleep but refresh the gui at the same time?
>
> Thanks,
> Cyrus
Threads would be one way, although they can be not very portable and
pretty icky. See "$ man pthread_create" and the GTK.org FAQ question on
writing threaded GTK+ applications.
> --
> Cyrus Patel - cyrus@linuxfan.com
> Dept. of Computer Engineering Debian GNU/Linux
> University of New South Wales (Woody)
> Sydney, Australia. ICQ: 50738541
> http://www.cyrusp.com Mobile: 0402 266 731 cyrusmobile@linuxfreak.com
--
"It was the first time somebody called me 'sir', without adding, 'you're
making a scene.'"
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]