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#ifdef BOOST_INTERPROCESS_WINDOWS
13#include <boost/interprocess/sync/windows/semaphore.hpp>
14#include "semaphore_test_template.hpp"
15
16int main()
17{
18 using namespace boost::interprocess;
19 return test::test_all_semaphore<ipcdetail::winapi_semaphore>();
20}
21#else
22
23int main()
24{
25 return 0;
26}
27
28#endif
29

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