Am Dienstag, 6. Februar 2007 14:34 schrieb Oleg Verych:
> On Tue, Feb 06, 2007 at 01:18:13PM +0100, Oliver Neukum wrote:
> > Am Dienstag, 6. Februar 2007 12:31 schrieb Joris van Rantwijk:
> > > A spinlock should certainly be sufficient. I think spinlocks have a 
> > > memory barrier built-in, otherwise they would be pretty useless.
> > 
> > They do, as do all locks.
> 
> Hm. I thought problem is serializing, rather than access to lock
> variable. And i doubt memory barrier is a *must* for spin locks.

Locks are used to guarantee that nobody sees an inconsistent state.
Therefore memory ordering must be ensured.

        Regards
                Oliver

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to