Slightly more sanitary thread dispatch
Tell thread sanitizer that the thread wrapper is released before passing it to a new thread.
This commit is contained in:
@@ -61,7 +61,7 @@ thread_wrap(isc_threadfunc_t func, void *arg) {
|
||||
.func = func,
|
||||
.arg = arg,
|
||||
};
|
||||
|
||||
__tsan_release(wrap);
|
||||
return (wrap);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user