mark some invariant checks in disk_io_thread as expensive

This commit is contained in:
Arvid Norberg 2011-06-21 05:10:32 +00:00
parent ae3fc48b80
commit b9e754d14d
1 changed files with 2 additions and 2 deletions

View File

@ -1081,7 +1081,7 @@ namespace libtorrent
{
if (p.blocks[k].buf)
{
#ifndef TORRENT_DISABLE_POOL_ALLOCATOR
#if !defined TORRENT_DISABLE_POOL_ALLOCATOR && !defined TORRENT_NO_EXPENSIVE_INVARIANT_CHECK
TORRENT_ASSERT(is_disk_buffer(p.blocks[k].buf));
#endif
++blocks;
@ -1105,7 +1105,7 @@ namespace libtorrent
{
if (p.blocks[k].buf)
{
#ifndef TORRENT_DISABLE_POOL_ALLOCATOR
#if !defined TORRENT_DISABLE_POOL_ALLOCATOR && !defined TORRENT_NO_EXPENSIVE_INVARIANT_CHECK
TORRENT_ASSERT(is_disk_buffer(p.blocks[k].buf));
#endif
++blocks;