removed assert that could cause dead-lock in debug mode
This commit is contained in:
parent
3144767632
commit
5f6351146a
|
@ -635,20 +635,6 @@ namespace libtorrent
|
||||||
TORRENT_ASSERT(j.storage);
|
TORRENT_ASSERT(j.storage);
|
||||||
TORRENT_ASSERT(j.buffer_size <= m_block_size);
|
TORRENT_ASSERT(j.buffer_size <= m_block_size);
|
||||||
mutex_t::scoped_lock l(m_queue_mutex);
|
mutex_t::scoped_lock l(m_queue_mutex);
|
||||||
#ifndef NDEBUG
|
|
||||||
mutex_t::scoped_lock l2(m_piece_mutex);
|
|
||||||
if (j.action == disk_io_job::write)
|
|
||||||
{
|
|
||||||
cache_t::iterator p
|
|
||||||
= find_cached_piece(m_pieces, j, l2);
|
|
||||||
if (p != m_pieces.end())
|
|
||||||
{
|
|
||||||
int block = j.offset / m_block_size;
|
|
||||||
char const* buffer = p->blocks[block];
|
|
||||||
TORRENT_ASSERT(buffer == 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
std::list<disk_io_job>::reverse_iterator i = m_jobs.rbegin();
|
std::list<disk_io_job>::reverse_iterator i = m_jobs.rbegin();
|
||||||
if (j.action == disk_io_job::read)
|
if (j.action == disk_io_job::read)
|
||||||
|
|
Loading…
Reference in New Issue