[Top][All Lists]

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

Re: [Qemu-devel] [RFC PATCH resend 00/11] Make CoMutex/CoQueue/CoRwlock

From: Paolo Bonzini
Subject: Re: [Qemu-devel] [RFC PATCH resend 00/11] Make CoMutex/CoQueue/CoRwlock thread-safe
Date: Tue, 17 May 2016 17:34:57 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0

On 26/04/2016 12:54, Stefan Hajnoczi wrote:
> I wonder whether it would be cleaner to introduce new primitives instead
> of modifying CoMutex/CoQueue.  That way it would be clear whether code
> is written to be thread-safe or not.

Interesting suggestion.  I think we have few enough CoMutexes/CoQueues
(also, almost all of them in core code and/or coarse-grained) that we
can do the conversion in one series, but if I'm wrong it's certainly a

vdi.c is a CoMutex that I know is not thread safe, but I've done the
conversion to CoRwlock and it is not hard.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]