- bool active(const yp2::Session &s) {
- typename std::map<yp2::Session,T>::const_iterator it;
+#if 0
+ T &get_session_data(const metaproxy_1::Session &s) {
+ boost::mutex::scoped_lock lock(m_map_mutex);
+
+ typename std::map<metaproxy_1::Session,SessionItem>::const_iterator it;
+ it = m_map.find(s);
+ if (it == m_map.end())
+ return 0;
+ boost::mutx::scoped_lock *scoped_ptr =
+ new boost::mutex::scoped_lock(it->second->m_item_mutex);
+ };
+#endif
+ bool exist(const metaproxy_1::Session &s) {
+ typename std::map<metaproxy_1::Session,SessionItem>::const_iterator it;