Re: [FreeDOS-32-dev] Event management in OSLib
Status: Pre-Alpha
Brought to you by:
salvois
From: Salvo I. <sa...@em...> - 2005-02-28 14:52:56
|
Hi, On Monday 28 February 2005 15:09, Luca Abeni wrote: > oslib has to store timeouts in a linked list containing absolute times > anyway (for various reasons: for example, to avoid accumulating errors, > to simplify event insertion/deletion...). So, changing the interface > would simply move a gettime from the caller to oslib... I do not see > many advantages. On Monday 28 February 2005 12:56, Nils Labugt wrote: > I don't think (IMHO) this is a good idea. If I understand you correctly, > that you want to store the event in the list in this form, it would mean > that you would have to subtract form every event in the list for each > timer tick, witch would be slower if there is many events waiting. Now > only a single comparison is sufficient (usually). Thanks for the clarification. On Monday 28 February 2005 15:09, Luca Abeni wrote: > It can (and should) of course be changed to use QWORDS, but I do not > want to change that until the code is stable and runs fine... Otherwise, > we risk to add mess to the mess :) OK. I was just asking. IAC, I suppose the interface in dr-env would stay the same (but see below). On Monday 28 February 2005 15:17, Luca Abeni wrote: > I think a resolution of 1us should be sufficient too... But it was > pointed out that even with a 1ns resolution the system would have many > years of lifetime (assuming a 64bit variable for storing system time). > So, the 1ns resolution was chosen. I have no preferences about it... Something like 585 years... I suppose it is enough for us :-) Hence, I suggest to use a nanosecond parameter also in the event_post of dr-env. In this case we would probably need to make this parameter a QWORD, in order to support delta-times longer than 4 s. Please advise so that I can also change the parameters passed in the floppy driver if needed. Bye, Salvo -- -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Con Tele 2 puoi risparmiare più di 200 sull'attivazione ADSL e * correre ad esaudire gli altri tuoi desideri! * Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=3105&d=28-2 |