The locking_ptr is smart pointer with a scoped locking mechanism. More...
#include <boost/utility.hpp>
#include <boost/thread/mutex.hpp>
Go to the source code of this file.
Classes | |
class | boost::threadpool::detail::locking_ptr< T, Mutex > |
Smart pointer with a scoped locking mechanism. More... | |
Namespaces | |
namespace | boost |
The namespace threadpool contains a thread pool and related utility classes. | |
namespace | boost::threadpool |
namespace | boost::threadpool::detail |
The locking_ptr is smart pointer with a scoped locking mechanism.
The class is a wrapper for a volatile pointer. It enables synchronized access to the internal pointer by locking the passed mutex. locking_ptr is based on Andrei Alexandrescu's LockingPtr. For more information see article "volatile - Multithreaded Programmer's Best Friend" by A. Alexandrescu.
Copyright (c) 2005-2007 Philipp Henkel
Use, modification, and distribution are subject to 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)
http://threadpool.sourceforge.net
Definition in file locking_ptr.hpp.