|
From: | Paolo Bonzini |
Subject: | Re: [PATCH 5/6] co-shared-resource: protect with a mutex |
Date: | Wed, 12 May 2021 20:30:40 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 |
On 12/05/21 17:44, Stefan Hajnoczi wrote:
If we follow this strategy basically any data structure used by coroutines needs its own fine-grained lock (like Java's Object base class which has its own lock).
Maybe not all, but only those that use CoQueue? Interestingly, I was a bit less okay with ProgressMeter and didn't think twice about the other two.
Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |