Need to do this too.

This commit is contained in:
JoelKatz
2013-03-06 23:31:20 -08:00
parent fbd854e2e9
commit caf9c1f552

View File

@@ -82,9 +82,9 @@ public:
* pointer.
*/
element_ptr get() {
boost::lock_guard<boost::recursive_mutex> lock(m_lock);
element_ptr p, q;
{
boost::lock_guard<boost::recursive_mutex> lock(m_lock);
/*std::cout << "message requested ("
<< m_cur_elements-m_avaliable.size()
@@ -113,6 +113,7 @@ public:
}
p->set_live();
}
return p;
}
void recycle(element_ptr p) {