:
:> In message <[EMAIL PROTECTED]> Mike Smith writes:
:> : What about it in particular? Or are you referring to overflow handling?
:>
:> Yes. Well, I guess I assumed it was a circular thing, and you'd need
:> to have some comparison against read index, which would be racible.
:
:Not if you think about it; all you need are atomic read/write operations
:for the indexes. Circular FIFOs are kinda neat like that. 8)
:
:--
:\\ Give a man a fish, and you feed him for a day. \\ Mike Smith
Well, monotonically increasing (except when it wraps), and atomic
writes. Atomic read-modify-writes are not required which means that
no locking is needed at all, not even a 'lock' prefix (though on some
architectures you have to worry about delayed commits between cpu's).
-Matt
Matthew Dillon
<[EMAIL PROTECTED]>
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message