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/sync/named_mutex.hpp>
12#include <boost/interprocess/sync/named_condition_any.hpp>
13#include <boost/interprocess/sync/detail/locks.hpp>
14#include "condition_test_template.hpp"
15#include "named_creation_template.hpp"
16#include <string>
17#include <sstream>
18#include "get_process_id_name.hpp"
19#include "named_condition_test_helpers.hpp"
20
21#if defined(BOOST_INTERPROCESS_WINDOWS)
22#include <boost/interprocess/sync/windows/named_condition_any.hpp>
23#include <boost/interprocess/sync/windows/named_mutex.hpp>
24#endif
25
26using namespace boost::interprocess;
27
28int main()
29{
30 int ret;
31 #if defined(BOOST_INTERPROCESS_WINDOWS)
32 ret = test::test_named_condition<ipcdetail::winapi_named_condition_any, ipcdetail::winapi_named_mutex>();
33 if (ret)
34 return ret;
35 #endif
36 ret = test::test_named_condition<named_condition_any, named_mutex>();
37
38 return ret;
39}
40

source code of boost/libs/interprocess/test/named_condition_any_test.cpp