1 //////////////////////////////////////////////////////////////////////////////
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)
7 // See http://www.boost.org/libs/interprocess for documentation.
9 //////////////////////////////////////////////////////////////////////////////
10 #include <boost/interprocess/sync/interprocess_mutex.hpp>
11 #include <boost/interprocess/sync/interprocess_condition.hpp>
15 enum { LineSize = 100 };
21 //Mutex to protect access to the queue
22 boost::interprocess::interprocess_mutex mutex;
24 //Condition to wait when the queue is empty
25 boost::interprocess::interprocess_condition cond_empty;
27 //Condition to wait when the queue is full
28 boost::interprocess::interprocess_condition cond_full;
33 //Is there any message