]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/interprocess/test/mutex_test.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / interprocess / test / mutex_test.cpp
CommitLineData
7c673cae
FG
1//////////////////////////////////////////////////////////////////////////////
2//
3// (C) Copyright Ion Gaztanaga 2004-2012. Distributed under the Boost
4// Software License, Version 1.0. (See accompanying file
5// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6//
7// See http://www.boost.org/libs/interprocess for documentation.
8//
9//////////////////////////////////////////////////////////////////////////////
10
7c673cae
FG
11#include <boost/interprocess/detail/workaround.hpp>
12#include <boost/interprocess/sync/interprocess_mutex.hpp>
13#include "mutex_test_template.hpp"
14
15#if defined(BOOST_INTERPROCESS_WINDOWS)
16#include <boost/interprocess/sync/windows/mutex.hpp>
17#include <boost/interprocess/sync/spin/mutex.hpp>
18#endif
19
20int main ()
21{
22 using namespace boost::interprocess;
23
24 #if defined(BOOST_INTERPROCESS_WINDOWS)
1e59de90
TL
25 test::test_all_lock<ipcdetail::winapi_mutex>();
26 test::test_all_mutex<ipcdetail::winapi_mutex>();
7c673cae
FG
27 test::test_all_lock<ipcdetail::spin_mutex>();
28 test::test_all_mutex<ipcdetail::spin_mutex>();
29 #endif
30
31 test::test_all_lock<interprocess_mutex>();
32 test::test_all_mutex<interprocess_mutex>();
33 return 0;
34}