Re: nanosleep & sginap

New Message Reply Date view Thread view Subject view Author view

Brian Furtaw (brian++at++dingbat.clubfed.sgi.com)
Thu, 1 Apr 1999 14:34:08 -0500


You actually want signals to awaken sleeping processes so control can be
transfered to the signal handler. Else you would miss the delivery of signals
like SIGTERM which is generated by ^C or the kill command, you would not want
that would you? So to get control of run away processes you actually want
sginap to awaken from signals. As Phil stated you don't need to worry about
signals interrupting your draw process unless of course you need to kill it.
You can read about signals on the signal man page.

Brian

On Apr 1, 9:47am, Phil Keslin wrote:
> Subject: Re: nanosleep & sginap
> Mattias.Johansson++at++saab.se wrote:
> >
> > Somebody forgot to update the manuals... or tell me about it, though :-)
> > >From the manual:
> >
> > Note that if the calling thread is interrupted by a signal before the
> > specified number of ticks has elapsed, sginap will return
> > prematurely.
>
> This is still true (and I believe true for some sleeps as well).
> Although it is possible for the sginap to awaken due to a signal, there
> are no signals delivered to the DRAW process that would have this
> effect. Even if it did, the wakeup would be effective only if it occured
> in the frame just prior to the vertical retrace in which the swapbuffers
> should happen. If it doesn't, then the DRAW will simply call sginap
> again.
>
> - Phil
> --
> Phil Keslin <philk++at++engr.sgi.com>
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>-- End of excerpt from Phil Keslin

-- 
    ----oOOo----    ----oOOo----    ----oOOo----    ----oOOo----

Brian Furtaw (brian++at++sgi.com) VisSim Technical Consultant Office:(301)572-3293 Fax: (301)872-3293 12200-G Plum Orchard Drive OpenGL/Performer/OpenInventor/ImageVision Silver Spring, Maryland 20904 Optimizer/React/PCI Device Drivers


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Thu Apr 01 1999 - 12:25:34 PST

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.