lw_mutex_test.cpp
来自「Boost provides free peer-reviewed portab」· C++ 代码 · 共 29 行
CPP
29 行
//// lw_mutex_test.cpp//// Copyright 2005 Peter Dimov//// 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)//#include <boost/detail/lightweight_mutex.hpp>// Sanity check onlyboost::detail::lightweight_mutex m1;int main(){ boost::detail::lightweight_mutex::scoped_lock lock1( m1 ); boost::detail::lightweight_mutex m2; boost::detail::lightweight_mutex m3; boost::detail::lightweight_mutex::scoped_lock lock2( m2 ); boost::detail::lightweight_mutex::scoped_lock lock3( m3 ); return 0;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?