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