Date: Mon, 31 Aug 1998 11:05:58 +0200 (WET) From: Andris Pavenis To: Eli Zaretskii cc: djgpp AT delorie DOT com, "Alexander S. Aganichev" Subject: Re: uclock () In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Sun, 30 Aug 1998, Eli Zaretskii wrote: > > On Thu, 27 Aug 1998, Andris Pavenis wrote: > > > At first it is NECESSARY to disable interrupts when reading PIC > > counter. > > Beware: disabling interrupts under some DPMI servers is *extremely* > expensive, since some servers trap CLI/STI and the related DPMI call > and emulate them with many-many CPU cycles. This is not something I'd > suggest to put in a function that needs to have minimum overhead > (otherwise, its accuracy is destroyed). > There is no other way if one does not want to introduce compatibility problems. If somebody else will try to read PIC timer counter at the same time (one process is interrupted in the middle of reading and the second is doing the same reading) PIC timer will be messed up. I don't think we want this to happen. Andris