We needed a threadsafe hash map, with the possibility of multiple readers accessing the map at the same time, but only one writer at a time. More...
#include <boost/smart_ptr.hpp>
#include <boost/thread/shared_mutex.hpp>
#include <boost/thread/mutex.hpp>
#include <map>
#include <vector>
#include <iostream>
#include <utility>
#include <string>
Go to the source code of this file.
Classes | |
class | threadsafe::Map< T > |
Namespaces | |
threadsafe | |
We needed a threadsafe hash map, with the possibility of multiple readers accessing the map at the same time, but only one writer at a time.
Copyright 2011 Shadow Robot Company Ltd.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file thread_safe_map.hpp.