|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [PATCH 01/35] WIP: coroutine: annotate coroutine with clang thread safety attributes |
Date: | Wed, 5 Jul 2017 13:39:21 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 |
On 05/07/2017 00:03, Marc-André Lureau wrote: > +typedef int TAA_ROLE coroutine_role; > +extern coroutine_role _coroutine_fn; > + > +static inline void co_role_acquire(coroutine_role R) TAA_ACQUIRE(R) > TAA_NO_ANALYSYS {} > +static inline void co_role_release(coroutine_role R) TAA_RELEASE(R) > TAA_NO_ANALYSYS {} Is the argument necessary, or could it be simply TAA_ACQUIRE(_coroutine_fn)? Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |