tech-kern archive

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

Re: mutexes, locks and so on...



On Thu, Nov 11, 2010 at 05:22:03PM +0100, Johnny Billquist wrote:
*snip snip*
> All others rely on the __HAVE_SIMPLE_MUTEXES
> implementation, which utilize a CAS function. Obviously the VAX does
> not have a CAS, and it is rather costly to simulate it, so I'm
> working on getting away from this. (Does really all other platforms
> have a CAS?)

Later in this thread you mention an MP-safe VAX instruction for
manipulating linked-lists.  You cannot use that instruction in a clever
way to provide atomic_cas_ptr() and atomic_swap_ptr() for rwlock(9) to
use?

Dave

-- 
David Young             OJC Technologies
dyoung%ojctech.com@localhost      Urbana, IL * (217) 278-3933


Home | Main Index | Thread Index | Old Index