| 
									
										
										
										
											2002-02-12 16:55:25 +00:00
										 |  |  | #ifndef BOOST_DETAIL_LIGHTWEIGHT_MUTEX_HPP_INCLUDED
 | 
					
						
							|  |  |  | #define BOOST_DETAIL_LIGHTWEIGHT_MUTEX_HPP_INCLUDED
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-11-28 15:35:21 +00:00
										 |  |  | // MS compatible compilers support #pragma once
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-06-12 17:09:24 +00:00
										 |  |  | #if defined(_MSC_VER) && (_MSC_VER >= 1020)
 | 
					
						
							|  |  |  | # pragma once
 | 
					
						
							| 
									
										
										
										
											2002-02-12 16:55:25 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | //  boost/detail/lightweight_mutex.hpp - lightweight mutex
 | 
					
						
							|  |  |  | //
 | 
					
						
							| 
									
										
										
										
											2003-07-02 11:54:40 +00:00
										 |  |  | //  Copyright (c) 2002, 2003 Peter Dimov and Multi Media Ltd.
 | 
					
						
							| 
									
										
										
										
											2002-02-12 16:55:25 +00:00
										 |  |  | //
 | 
					
						
							| 
									
										
										
										
											2004-07-26 00:32:12 +00:00
										 |  |  | // Distributed under the Boost Software License, Version 1.0. (See
 | 
					
						
							|  |  |  | // accompanying file LICENSE_1_0.txt or copy at
 | 
					
						
							|  |  |  | // http://www.boost.org/LICENSE_1_0.txt)
 | 
					
						
							| 
									
										
										
										
											2002-02-12 16:55:25 +00:00
										 |  |  | //
 | 
					
						
							| 
									
										
										
										
											2002-06-20 15:16:03 +00:00
										 |  |  | //  typedef <unspecified> boost::detail::lightweight_mutex;
 | 
					
						
							| 
									
										
										
										
											2002-02-12 16:55:25 +00:00
										 |  |  | //
 | 
					
						
							| 
									
										
										
										
											2005-04-02 13:12:28 +00:00
										 |  |  | //  boost::detail::lightweight_mutex is a header-only implementation of
 | 
					
						
							|  |  |  | //  a subset of the Mutex concept requirements:
 | 
					
						
							| 
									
										
										
										
											2005-04-01 19:33:00 +00:00
										 |  |  | //
 | 
					
						
							|  |  |  | //  http://www.boost.org/doc/html/threads/concepts.html#threads.concepts.Mutex
 | 
					
						
							| 
									
										
										
										
											2002-02-12 16:55:25 +00:00
										 |  |  | //
 | 
					
						
							| 
									
										
										
										
											2005-04-02 13:12:28 +00:00
										 |  |  | //  It maps to a CRITICAL_SECTION on Windows or a pthread_mutex on POSIX.
 | 
					
						
							| 
									
										
										
										
											2002-02-12 16:55:25 +00:00
										 |  |  | //
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <boost/config.hpp>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-07-02 11:54:40 +00:00
										 |  |  | #if !defined(BOOST_HAS_THREADS)
 | 
					
						
							| 
									
										
										
										
											2005-04-02 13:12:28 +00:00
										 |  |  | # include <boost/detail/lwm_nop.hpp>
 | 
					
						
							|  |  |  | #elif defined(WIN32) || defined(_WIN32) || defined(__WIN32__)
 | 
					
						
							| 
									
										
										
										
											2002-03-15 22:00:10 +00:00
										 |  |  | #  include <boost/detail/lwm_win32_cs.hpp>
 | 
					
						
							| 
									
										
										
										
											2002-02-12 16:55:25 +00:00
										 |  |  | #elif defined(BOOST_HAS_PTHREADS)
 | 
					
						
							|  |  |  | #  include <boost/detail/lwm_pthreads.hpp>
 | 
					
						
							|  |  |  | #else
 | 
					
						
							| 
									
										
										
										
											2003-02-10 12:58:50 +00:00
										 |  |  | // Use #define BOOST_DISABLE_THREADS to avoid the error
 | 
					
						
							|  |  |  | #  error Unrecognized threading platform
 | 
					
						
							| 
									
										
										
										
											2002-02-12 16:55:25 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #endif // #ifndef BOOST_DETAIL_LIGHTWEIGHT_MUTEX_HPP_INCLUDED
 |