1 //////////////////////////////////////////////////////////////////////////////
3 // (C) Copyright Ion Gaztanaga 2006-2009. 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)
7 // See http://www.boost.org/libs/interprocess for documentation.
9 //////////////////////////////////////////////////////////////////////////////
10 #include <boost/interprocess/detail/config_begin.hpp>
11 //[doc_anonymous_condition_shared_data
12 #include <boost/interprocess/sync/interprocess_mutex.hpp>
13 #include <boost/interprocess/sync/interprocess_condition.hpp>
17 enum { LineSize = 100 };
23 //Mutex to protect access to the queue
24 boost::interprocess::interprocess_mutex mutex;
26 //Condition to wait when the queue is empty
27 boost::interprocess::interprocess_condition cond_empty;
29 //Condition to wait when the queue is full
30 boost::interprocess::interprocess_condition cond_full;
35 //Is there any message
39 #include <boost/interprocess/detail/config_end.hpp>