On 30/09/20 14:15, Elena Afanasova wrote: >>> + WITH_QEMU_LOCK_GUARD(&job_mutex) { >>> + if (ns != -1) { >>> + timer_mod(&job->sleep_timer, ns); >>> + } >>> + job->busy = false; >>> + job_event_idle(job); >> Is this new macro safe to use in a coroutine context? > Hi, I suppose it's safe. It would be nice to get some more opinions > here. >
Yes, the macro is just a wrapper around the qemu_mutex_lock/unlock functions (or qemu_co_mutex_lock/unlock depending on the type of its argument). Paolo