boostorg / thread

Boost.org thread module
http://boost.org/libs/thread
201 stars 161 forks source link

lock_guard__adopt_lock_compile_p test fails on clang-cl #321

Closed Kojoley closed 1 year ago

Kojoley commented 4 years ago

b2 toolset=clang-win libs/thread/test//lock_guard__adopt_lock_compile_p

libs\thread\test\sync\mutual_exclusion\locks\lock_guard\lock_guard_adopt_lock_compile_pass.cpp(21,35): error: calling function 'lock_guard' requires holding mutex 'm' exclusively [-Werror,-Wthread-safety-analysis]
  boost::lock_guard<boost::mutex> lk(m, boost::adopt_lock);
                                  ^