Files
interprocess/test/spin_recursive_mutex_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

26 lines
891 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>
#include <boost/interprocess/sync/spin/recursive_mutex.hpp>
#include <boost/interprocess/sync/scoped_lock.hpp>
#include "mutex_test_template.hpp"
int main ()
{
using namespace boost::interprocess;
//
test::test_all_lock<ipcdetail::spin_recursive_mutex>();
test::test_all_mutex<ipcdetail::spin_recursive_mutex>();
test::test_all_recursive_lock<ipcdetail::spin_recursive_mutex>();
return 0;
}