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
11#include <boost/interprocess/detail/workaround.hpp>
12
13#if defined(BOOST_INTERPROCESS_WINDOWS)
14#include <boost/interprocess/sync/windows/mutex.hpp>
15#include "mutex_test_template.hpp"
16
17int main ()
18{
19 using namespace boost::interprocess;
20
21 test::test_all_lock<ipcdetail::winapi_mutex>();
22 test::test_all_mutex<ipcdetail::winapi_mutex>();
23 return 0;
24}
25#else //BOOST_INTERPROCESS_WINDOWS
26
27int main()
28{
29 return 0;
30}
31
32#endif //BOOST_INTERPROCESS_WINDOWS
33

source code of boost/libs/interprocess/test/winapi_mutex_test.cpp