[parisc-linux] Re: [parisc-linux-cvs] linux grundler

Randolph Chung Randolph Chung <tausq@debian.org>
Sat, 8 Feb 2003 16:56:08 -0800

> lock(l1)
> do something
> unlock(l1)
> lock(l2)
> do something else
> unlock(l2)
> will gcc ever move the lock(l2) before the unlock(l1)? 

well, bad example, since l1 and l2 are both volatile, but in general,
nothing will prevent part of "do something else" to happen inside the l1
lock, right?