sharable_mutex_test.cpp 1.1 KB

12345678910111213141516171819202122232425262728293031
  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. #include <boost/interprocess/detail/config_begin.hpp>
  11. #include "mutex_test_template.hpp"
  12. #include "sharable_mutex_test_template.hpp"
  13. #include <boost/interprocess/sync/interprocess_sharable_mutex.hpp>
  14. #include <boost/interprocess/sync/scoped_lock.hpp>
  15. #include <boost/interprocess/sync/sharable_lock.hpp>
  16. #include <boost/date_time/posix_time/posix_time_types.hpp>
  17. #include "util.hpp"
  18. int main ()
  19. {
  20. using namespace boost::interprocess;
  21. test::test_all_lock<interprocess_sharable_mutex>();
  22. test::test_all_mutex<interprocess_sharable_mutex>();
  23. test::test_all_sharable_mutex<interprocess_sharable_mutex>();
  24. return 0;
  25. }
  26. #include <boost/interprocess/detail/config_end.hpp>