On Sun, 17 Nov 2019 19:36:11 +0000
Harman Kalra <hka...@marvell.com> wrote:

> +int rte_thread_is_intr(void)
> +{
> +     if (pthread_equal(intr_thread, pthread_self()))
> +             return true;
> +     else
> +             return false;
> +}

A couple of things here.

1. true/false implies that this is of type bool not int.

2. Why the if, you can just do:
       return pthread_equal()

Reply via email to