]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/thread/test/test_8943.cpp
1 // Copyright (C) 2013 Vicente Botet
3 // Distributed under the Boost Software License, Version 1.0. (See accompanying
4 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 #include <boost/detail/lightweight_test.hpp>
14 #include <boost/thread/once.hpp>
21 void operator()() const
23 std::cout
<< "foo" << std::endl
;
30 int _tmain(int /*argc*/, _TCHAR
* /*argv*/[])
32 int main(int /*argc*/, char* /*argv*/[])
37 boost::once_flag once_flag
= BOOST_ONCE_INIT
;
38 boost::call_once(once_flag
, foo());
43 std::cerr
<< "Unknown exception" << std::endl
;
46 return boost::report_errors();