|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [PATCH v2 06/13] qemu-thread: add simple test-and-set spinlock |
Date: | Fri, 8 Apr 2016 23:26:21 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 |
On 08/04/2016 23:24, Alex Bennée wrote: > > Except that quite a lot of hosts can only (efficiently) do atomic > > operations on > > a minimum of 4 byte quantities. I'd rather continue to use int here. > > I suspect bool == unsigned int underneath. But having true/false and 0/1 > mixed up > gets confusing even if they are equivalent. Sometimes sizeof(bool) == 1. Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |