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_mutex_shared_data
12 #include <boost/interprocess/sync/interprocess_mutex.hpp>
14 struct shared_memory_log
16 enum { NumItems = 100 };
17 enum { LineSize = 100 };
25 //Mutex to protect access to the queue
26 boost::interprocess::interprocess_mutex mutex;
29 char items[NumItems][LineSize];
35 #include <boost/interprocess/detail/config_end.hpp>