added accessor to query for the max number of connections

This commit is contained in:
Arvid Norberg
2008-11-08 07:40:55 +00:00
parent 71fb640699
commit 4e9124019b
7 changed files with 28 additions and 5 deletions

View File

@@ -714,6 +714,7 @@ namespace libtorrent
void disk_io_thread::free_buffer(char* buf)
{
TORRENT_ASSERT(buf);
mutex_t::scoped_lock l(m_pool_mutex);
#ifdef TORRENT_STATS
--m_allocations;