[v3,15/16] eal/windows: disable lock check on alarm code
Checks
Commit Message
This code uses locks to implement synchronisation between two threads.
There seems nothing wrong with it, just silence the clang lock check.
Signed-off-by: David Marchand <david.marchand@redhat.com>
---
lib/eal/windows/eal_alarm.c | 2 ++
1 file changed, 2 insertions(+)
Comments
On Tue, Apr 04, 2023 at 02:48:39PM +0200, David Marchand wrote:
> This code uses locks to implement synchronisation between two threads.
> There seems nothing wrong with it, just silence the clang lock check.
>
> Signed-off-by: David Marchand <david.marchand@redhat.com>
> ---
Acked-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
On Tue, Apr 4, 2023 at 3:49 PM David Marchand <david.marchand@redhat.com> wrote:
>
> This code uses locks to implement synchronisation between two threads.
> There seems nothing wrong with it, just silence the clang lock check.
>
> Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
@@ -224,6 +224,7 @@ struct intr_task {
static void
intr_thread_entry(void *arg)
+ __rte_no_thread_safety_analysis
{
struct intr_task *task = arg;
task->func(task->arg);
@@ -232,6 +233,7 @@ intr_thread_entry(void *arg)
static int
intr_thread_exec_sync(void (*func)(void *arg), void *arg)
+ __rte_no_thread_safety_analysis
{
struct intr_task task;
int ret;