|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCHv2 5/6] xen: use ticket locks for spin locks
On 04/10/2015 10:19 AM, David Vrabel wrote:
Why do you use both 'if' and 'while"? I.e. why not just
while ( tickets.tail != read_atomic(&lock->tickets.head) )
{
LOCK_PROFILE_BLOCK;
cpu_relax();
}
Is it safe to do a plain increment here and a locked one? -boris _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |