9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] nanosleep()?
@ 2011-10-28  4:07 Lucio De Re
  2011-10-28  4:12 ` ron minnich
  0 siblings, 1 reply; 15+ messages in thread
From: Lucio De Re @ 2011-10-28  4:07 UTC (permalink / raw)
  To: 9fans

In porting the prof command from the Go distribution (src/cmd/prof),
absence of the nanosleep() function seems to be the final stumbling
block, at least for compilation purposes.  Any suggestions on how to
implement it?

++L




^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: [9fans] nanosleep()?
@ 2011-10-28  4:32 Lucio De Re
  2011-10-28  9:21 ` Charles Forsyth
  0 siblings, 1 reply; 15+ messages in thread
From: Lucio De Re @ 2011-10-28  4:32 UTC (permalink / raw)
  To: 9fans

> For a first pass, you could create a nanosleep for plan 9 that rounds
> to milliseconds and then use sleep()

Sounds like a plan, because the man page for nanosleep() expects the
underlying resolution to be implemented.  The complexities of "does
not interact with signals" can probably be ignored until further
notice for present purposes.  Being able to resume may take a bit of
effort.

++L




^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2011-10-29 20:48 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-28  4:07 [9fans] nanosleep()? Lucio De Re
2011-10-28  4:12 ` ron minnich
2011-10-28  9:59   ` Anthony Martin
2011-10-28 10:25     ` Charles Forsyth
2011-10-28 10:39       ` Charles Forsyth
2011-10-28 11:31         ` Lucio De Re
2011-10-28 11:42           ` Charles Forsyth
2011-10-28 12:05             ` Lucio De Re
2011-10-28 12:08               ` Lucio De Re
2011-10-28 12:20                 ` Charles Forsyth
2011-10-28 14:32                   ` Lucio De Re
2011-10-29 20:48                     ` Christopher Nielsen
2011-10-28  4:32 Lucio De Re
2011-10-28  9:21 ` Charles Forsyth
2011-10-28  9:44   ` Lucio De Re

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).