DragonFly BSD
DragonFly commits List (threaded) for 2004-12
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: cvs commit: src/sys/i386/include


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 8 Dec 2004 15:57:22 -0800 (PST)

:...
:>     sys/i386/include     gencount.h 
:>   Log:
:>   Implement generation counters as (at least) 64 bit counters. The increment
:>   and get operations are interrupt safe, but not MP-safe.
:>   
:>   The gencount_inc implementation uses critical sections, which is the best
:>   possible for generic IA32 code.
:
:I think I can get the gencount_inc fully atomic for Pentium+, but this needs
:some more work first.
:
:Joerg

    What's this for ?  Generally speaking I don't think we want to abstract
    this.  Atomicy requirements for generation counters is going to be highly
    dependant on the situation, all these functions will do is confuse 
    matters.

					-Matt
					Matthew Dillon 
					<dillon@xxxxxxxxxxxxx>



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]