qemu-block
[Top][All Lists]
Advanced

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

Re: [PATCH v4 4/4] cpus: use coroutine TLS macros for iothread_locked


From: Paolo Bonzini
Subject: Re: [PATCH v4 4/4] cpus: use coroutine TLS macros for iothread_locked
Date: Wed, 23 Feb 2022 10:45:43 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0

On 2/21/22 15:29, Stefan Hajnoczi wrote:
-static __thread bool iothread_locked = false;
+QEMU_DEFINE_STATIC_CO_TLS(bool, iothread_locked)
bool qemu_mutex_iothread_locked(void)
  {
-    return iothread_locked;
+    return get_iothread_locked();
  }

Can we rename either the variable or the function, and avoid the wrapper altogether?

Paolo



reply via email to

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