[PATCH v2 5/5] co-shared-resource: protect with a mutex

2021-05-18 Thread Emanuele Giuseppe Esposito
co-shared-resource is currently not thread-safe, as also reported in co-shared-resource.h. Add a QemuMutex because co_try_get_from_shres can also be invoked from non-coroutine context. Signed-off-by: Emanuele Giuseppe Esposito --- include/qemu/co-shared-resource.h | 4 +--- util/qemu-co-shared-

Re: [PATCH v2 5/5] co-shared-resource: protect with a mutex

2021-05-18 Thread Vladimir Sementsov-Ogievskiy
18.05.2021 12:40, Emanuele Giuseppe Esposito wrote: co-shared-resource is currently not thread-safe, as also reported in co-shared-resource.h. Add a QemuMutex because co_try_get_from_shres can also be invoked from non-coroutine context. Signed-off-by: Emanuele Giuseppe Esposito --- include/qe