Files
interprocess/test/winapi_named_semaphore_test.cpp
Ion Gaztañaga 48e201a9c9 Split several sync utility tests to improve parallelization. Windows:
* Spin and Shm based utilities will be tested independently.
* Includes some refactoring to avoid copy-pasting some code in several similar synchronization primitive tests.
2024-01-12 13:46:53 +01:00

32 lines
795 B
C++

//////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright Ion Gaztanaga 2004-2012. 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)
//
// See http://www.boost.org/libs/interprocess for documentation.
//
//////////////////////////////////////////////////////////////////////////////
#include <boost/interprocess/detail/workaround.hpp>
#ifdef BOOST_INTERPROCESS_WINDOWS
#include <boost/interprocess/sync/windows/named_semaphore.hpp>
#include "named_semaphore_test_helpers.hpp"
using namespace boost::interprocess;
int main()
{
return test::test_named_semaphore<ipcdetail::winapi_named_semaphore>();
}
#else
int main()
{
return 0;
}
#endif