[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: replacing the use of gettimeofday in the scheduler

Yukihiro Matsumoto

3/1/2007 10:53:00 PM

Hi,

In message "Re: replacing the use of gettimeofday in the scheduler"
on Fri, 2 Mar 2007 07:31:16 +0900, "Avdi Grimm" <avdi@avdi.org> writes:

|Sounds like a bug to me. Time updates happen, sometimes without user
|intervention or knowledge. Software which can glitch or hang up as a
|result of this fact isn't robust.

If it is a bug, I suspect it's a bug in POSIX that doesn't provide any
API for proper "clock" for the purpose. Correct me if I'm wrong.

matz.

2 Answers

Avdi Grimm

3/1/2007 11:07:00 PM

0

On 3/1/07, Yukihiro Matsumoto <matz@ruby-lang.org> wrote:
> If it is a bug, I suspect it's a bug in POSIX that doesn't provide any
> API for proper "clock" for the purpose. Correct me if I'm wrong.

This might well be. Not being a contributor to the Ruby kernel, I
don't know what the policy is: does Ruby only implement features which
can be built with pure POSIX, or can they have OS-specific
implementations?

--
Avdi

Tomas Pospisek

3/1/2007 11:09:00 PM

0