• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //////////////////////////////////////////////////////////////////////////////
2 //
3 // (C) Copyright Ion Gaztanaga 2006-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 #include <boost/interprocess/sync/interprocess_condition.hpp>
13 #include <boost/interprocess/sync/interprocess_mutex.hpp>
14 #include "condition_test_template.hpp"
15 
16 #if defined(BOOST_INTERPROCESS_WINDOWS)
17 #include <boost/interprocess/sync/windows/condition.hpp>
18 #include <boost/interprocess/sync/windows/mutex.hpp>
19 #include <boost/interprocess/sync/spin/condition.hpp>
20 #include <boost/interprocess/sync/spin/mutex.hpp>
21 #endif
22 
23 using namespace boost::interprocess;
24 
main()25 int main ()
26 {
27    #if defined(BOOST_INTERPROCESS_WINDOWS)
28       if(!test::do_test_condition<ipcdetail::windows_condition, ipcdetail::windows_mutex>())
29          return 1;
30       if(!test::do_test_condition<ipcdetail::spin_condition, ipcdetail::spin_mutex>())
31          return 1;
32    #endif
33    if(!test::do_test_condition<interprocess_condition, interprocess_mutex>())
34       return 1;
35 
36    return 0;
37 }
38