Re: Avoiding microtime(9) global state
Jason Thorpe <[email protected]> Wed, 30 Jun 2004 18:11:25 -0700
| Newsgroups | gmane.os.netbsd.devel.smp |
|---|---|
| Message-ID | <[email protected]> |
On Jun 30, 2004, at 2:16 PM, [email protected] wrote: > And example is: > > A given file system operation might want to be tagged with a > 'time' for global ordering (i.e., so that if time changes, > operation is not considered to have occured before another > operation when sorting/batching i/o). > > The same file system operation might want to mark a file with > current Time of Day (e.g., modify time). > > I suspect that trying to use an actual time value and forcing it to > always increase was an attempt to shoehorn both of those together. So, perhaps there should be mono_microtime() (for the former), and plain-old microtime() for the latter. ...and have fun auditing all the microtime() calls to determine which ones should be changed to mono_microtime() :-) -- Jason R. Thorpe <[email protected]>
PGP.sig
(application/pgp-signature, 186 B) - not displayed