From: Tony Finch Date: Wed, 3 May 2023 14:44:36 +0000 (+0100) Subject: Slightly more sanitary thread dispatch X-Git-Tag: v9.19.14~52^2~9 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=cd0795beea1d4875c0ffa0f9e626560c11e68f1d;p=thirdparty%2Fbind9.git Slightly more sanitary thread dispatch Tell thread sanitizer that the thread wrapper is released before passing it to a new thread. --- diff --git a/lib/isc/thread.c b/lib/isc/thread.c index aca7c38332f..b0e0875acaf 100644 --- a/lib/isc/thread.c +++ b/lib/isc/thread.c @@ -61,7 +61,7 @@ thread_wrap(isc_threadfunc_t func, void *arg) { .func = func, .arg = arg, }; - + __tsan_release(wrap); return (wrap); }