Index:
[thread]
[date]
[subject]
[author]
From: Kien Pham <xengren@yahoo.com>
To : ggi-develop@eskimo.com
Date: Wed, 18 Aug 1999 00:33:27 -0700 (PDT)
Re: sleep dunno work
--- Steve Cheng <elmert@ipoline.com> wrote:
> On Tue, 17 Aug 1999, Erik Thiele wrote:
>
> > the sleep() system call does not work
> > (returns immediately)
> > if ggi visual is initialized
> > (Xlib target)
> >
> > is this a bug or a misfeature ?
> >
> > once ggiClose and ggiExit the sleep call works again
>
> sleep() fails because it is being interrupted by the
> signals caused by
> manual syncing. The only way I can think of to get
> around this is to
> use select(2) or giiEventSelect(), but getting
> interrupted 20 times per
> second doesn't help you much, does it? :(
>
> (It shouldn't happen on the XLIB target though...)
>
> If you really want to sleep, the best way is to simply
> turn off SYNC
> mode (use ggiSetFlags(3)).
>
> --
> Steve Cheng
>
> email: steve@ggi-project.org
> www: <http://shell.ipoline.com/~elmert/>
Thanks. You inadvertantly solved my blinking problem. :)
I knew about SYNC..but didn't think of it as the source of
the problem.
~K.P.
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
Index:
[thread]
[date]
[subject]
[author]