From f07a6606e44d7bba88efa55615075a917704bde1 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 14 Jul 2022 17:01:18 +0200 Subject: Set builtin result while holding mutex While the original code was probably correct, there is suspicion this is causing a TSAN false-positive. --- libbutl/builtin.hxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libbutl/builtin.hxx') diff --git a/libbutl/builtin.hxx b/libbutl/builtin.hxx index b8546be..b301f8a 100644 --- a/libbutl/builtin.hxx +++ b/libbutl/builtin.hxx @@ -90,8 +90,7 @@ namespace butl // be able to capture auto_fd by value in a lambda, etc). // template - explicit - async_state (F); + async_state (uint8_t&, F); }; builtin (std::uint8_t& r, std::unique_ptr&& s = nullptr) -- cgit v1.1