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/sync/interprocess_upgradable_mutex.hpp>
14 enum { NumItems = 100 };
15 enum { LineSize = 100 };
23 //Mutex to protect access to the queue
24 boost::interprocess::interprocess_upgradable_mutex upgradable_mutex;
27 char items[NumItems][LineSize];