26 #ifndef SHORE_PARALLEL_THREAD_INDEX_HPP__
27 #define SHORE_PARALLEL_THREAD_INDEX_HPP__
36 #include <boost/thread/thread.hpp>
37 #include <boost/thread/recursive_mutex.hpp>
60 subscription(
const std::string &info=std::string());
62 const std::string &info()
const;
63 std::string label()
const;
68 typedef boost::recursive_mutex mutex_type;
69 typedef boost::recursive_mutex::scoped_lock lock_type;
71 static mutex_type m_mutex;
73 static std::map<boost::thread::id,subscription> m_register;
74 static const subscription m_root_subscription;
81 static std::string info();
82 static std::string label();
87 #endif // SHORE_PARALLEL_THREAD_INDEX_HPP__