| 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/sync/interprocess_condition_any.hpp> |
| 12 | #include <boost/interprocess/sync/interprocess_mutex.hpp> |
| 13 | #include <boost/interprocess/sync/interprocess_recursive_mutex.hpp> |
| 14 | #include <boost/interprocess/sync/spin/mutex.hpp> |
| 15 | |
| 16 | #include "condition_test_template.hpp" |
| 17 | |
| 18 | using namespace boost::interprocess; |
| 19 | |
| 20 | int main () |
| 21 | { |
| 22 | if(!test::do_test_condition<interprocess_condition_any, interprocess_mutex>()) |
| 23 | return 1; |
| 24 | if(!test::do_test_condition<interprocess_condition_any, ipcdetail::spin_mutex>()) |
| 25 | return 1; |
| 26 | if(!test::do_test_condition<interprocess_condition_any, interprocess_recursive_mutex>()) |
| 27 | return 1; |
| 28 | |
| 29 | return 0; |
| 30 | } |
| 31 |
