[ovs-dev] [PATCH 4/4] ovs-thread: Add thread safety annotation to cond_wait.

Ben Pfaff blp at ovn.org
Mon Dec 10 17:54:16 UTC 2018


On Mon, Dec 10, 2018 at 08:05:23PM +0300, Ilya Maximets wrote:
> This fixes build with clang on FreeBSD:
> 
>   lib/ovs-thread.c:266:13: error:
> 
>   calling function 'pthread_cond_wait' requires holding mutex \
>   'mutex->lock' exclusively [-Werror,-Wthread-safety-analysis]
> 
>       error = pthread_cond_wait(cond, &mutex->lock);
>               ^
> 
> Fixes: 97be153858b4 ("clang: Add annotations for thread safety check.")
> Signed-off-by: Ilya Maximets <i.maximets at samsung.com>

Applied to master, thanks!


More information about the dev mailing list