// Copyright (C) 2017 Tom Hughes // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // // class mutex; #include #include void fail() { boost::mutex m0; if (!m0.try_lock()) { m0.unlock(); } }