bandwidth request block size optimization

This commit is contained in:
Arvid Norberg
2008-01-07 04:47:20 +00:00
parent 2ea40a51a9
commit 1d6e0f5bf6
8 changed files with 62 additions and 12 deletions

View File

@@ -1061,6 +1061,10 @@ namespace libtorrent
// since that is the size of the pool allocator's buffers
TORRENT_ASSERT(r.length <= 16 * 1024 || buffer != 0);
m_io_thread.add_job(j, handler);
#ifndef NDEBUG
boost::recursive_mutex::scoped_lock l(m_mutex);
TORRENT_ASSERT(slot_for(r.piece) >= 0);
#endif
}
void piece_manager::async_write(