| The Gaudi Framework v30r0 (c919700c)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

Classes | Namespaces
locking_ptr.hpp File Reference

The locking_ptr is smart pointer with a scoped locking mechanism. More...

`#include <boost/utility.hpp>`
`#include <boost/thread/mutex.hpp>`
Include dependency graph for locking_ptr.hpp:
This graph shows which files directly or indirectly include this file:

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
| boost
| The namespace threadpool contains a thread pool and related utility classes.
| boost::threadpool
| boost::threadpool::detail

## Detailed Description

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.