Subject: Re: [linux-audio-dev] lock-free ring buffer code
From: Bob Ham (rah_AT_bash.sh)
Date: Fri Apr 04 2003 - 22:00:36 EEST
On Thu, 2003-04-03 at 21:14, rm wrote:
> below is what i use (i think it works). the primary thing to notice
> is that readers and writers are kept in line by the atomicity of
> integer assignment (though in general, we should probably declare them
> atomic_t or something).
Attached is the fifo I've had banging about. It uses atomic_t.
-- Bob Ham <rah_AT_bash.sh>
This archive was generated by hypermail 2b28 : Fri Apr 04 2003 - 21:56:00 EEST