diff --git a/docs/todo.html b/docs/todo.html
index 9186c452e..49b1f1bee 100644
--- a/docs/todo.html
+++ b/docs/todo.html
@@ -24,7 +24,7 @@
relevance 4 | ../src/session_impl.cpp:666 | in order to support SSL over uTP, the utp_socket manager either needs to be able to receive packets on multiple ports, or we need to peek into the first few bytes the payload stream of a socket to determine whether or not it's an SSL connection. (The former is simpler but won't do as well with NATs) |
in order to support SSL over uTP, the utp_socket manager either
needs to be able to receive packets on multiple ports, or we need to
peek into the first few bytes the payload stream of a socket to determine
@@ -131,7 +131,7 @@ namespace libtorrent
case integer16: *((boost::uint16_t*)dest) = boost::uint16_t(val); break;
case integer: *((int*)dest) = int(val); break;
case size_integer: *((size_type*)dest) = size_type(val); break;
- | ||
relevance 3 | ../src/torrent.cpp:6151 | if peer is a really good peer, maybe we shouldn't disconnect it |
if peer is a really good peer, maybe we shouldn't disconnect it../src/torrent.cpp:6151 return false;
+ | ||
relevance 3 | ../src/torrent.cpp:6170 | if peer is a really good peer, maybe we shouldn't disconnect it |
if peer is a really good peer, maybe we shouldn't disconnect it../src/torrent.cpp:6170 return false;
}
TORRENT_ASSERT(m_connections.find(p) == m_connections.end());
m_connections.insert(p);
@@ -339,7 +339,7 @@ that we have a fixed length../src/policy.cpp:155relevance 2 | ../src/torrent.cpp:633 | post alert |
|
post alert../src/torrent.cpp:633 state_updated();
+ | ||
relevance 2 | ../src/torrent.cpp:635 | post alert |
post alert../src/torrent.cpp:635 state_updated();
set_state(torrent_status::downloading);
@@ -649,8 +649,8 @@ all completed disk operations../src/peer_connection.cpp:2581 | ||
relevance 1 | ../src/session_impl.cpp:5552 | report the proper address of the router as the source IP of this understanding of our external address, instead of the empty address |
report the proper address of the router as the source IP of
-this understanding of our external address, instead of the empty address../src/session_impl.cpp:5552 void session_impl::on_port_mapping(int mapping, address const& ip, int port
+ | ||
relevance 1 | ../src/session_impl.cpp:5544 | report the proper address of the router as the source IP of this understanding of our external address, instead of the empty address |
report the proper address of the router as the source IP of
+this understanding of our external address, instead of the empty address../src/session_impl.cpp:5544 void session_impl::on_port_mapping(int mapping, address const& ip, int port
, error_code const& ec, int map_transport)
{
TORRENT_ASSERT(is_network_thread());
@@ -701,9 +701,9 @@ this understanding of our external address, instead of the empty address | ||
relevance 1 | ../src/session_impl.cpp:6341 | we only need to do this if our global IPv4 address has changed since the DHT (currently) only supports IPv4. Since restarting the DHT is kind of expensive, it would be nice to not do it unnecessarily |
we only need to do this if our global IPv4 address has changed
+ | ||
relevance 1 | ../src/session_impl.cpp:6333 | we only need to do this if our global IPv4 address has changed since the DHT (currently) only supports IPv4. Since restarting the DHT is kind of expensive, it would be nice to not do it unnecessarily |
we only need to do this if our global IPv4 address has changed
since the DHT (currently) only supports IPv4. Since restarting the DHT
-is kind of expensive, it would be nice to not do it unnecessarily../src/session_impl.cpp:6341#endif
+is kind of expensive, it would be nice to not do it unnecessarily../src/session_impl.cpp:6333#endif
if (!m_external_ip.cast_vote(ip, source_type, source)) return;
@@ -754,11 +754,11 @@ is kind of expensive, it would be nice to not do it unnecessarily../src
#ifdef TORRENT_DISK_STATS
TORRENT_ASSERT(m_buffer_allocations >= 0);
- | ||
relevance 1 | ../src/torrent.cpp:1030 | make this depend on the error and on the filesystem the files are being downloaded to. If the error is no_space_left_on_device and the filesystem doesn't support sparse files, only zero the priorities of the pieces that are at the tails of all files, leaving everything up to the highest written piece in each file |
make this depend on the error and on the filesystem the
+ | ||
relevance 1 | ../src/torrent.cpp:1032 | make this depend on the error and on the filesystem the files are being downloaded to. If the error is no_space_left_on_device and the filesystem doesn't support sparse files, only zero the priorities of the pieces that are at the tails of all files, leaving everything up to the highest written piece in each file |
make this depend on the error and on the filesystem the
files are being downloaded to. If the error is no_space_left_on_device
and the filesystem doesn't support sparse files, only zero the priorities
of the pieces that are at the tails of all files, leaving everything
-up to the highest written piece in each file../src/torrent.cpp:1030 if (c) c->disconnect(errors::no_memory);
+up to the highest written piece in each file../src/torrent.cpp:1032 if (c) c->disconnect(errors::no_memory);
return;
}
@@ -809,8 +809,8 @@ up to the highest written piece in each file../src/torrent.cpp:1030 | ||
relevance 1 | ../src/torrent.cpp:5412 | save the send_stats state instead of throwing them away it may pose an issue when downgrading though |
save the send_stats state instead of throwing them away
-it may pose an issue when downgrading though../src/torrent.cpp:5412 ? (1 << k) : 0;
+ | ||
relevance 1 | ../src/torrent.cpp:5431 | save the send_stats state instead of throwing them away it may pose an issue when downgrading though |
save the send_stats state instead of throwing them away
+it may pose an issue when downgrading though../src/torrent.cpp:5431 ? (1 << k) : 0;
bitmask.append(1, v);
TORRENT_ASSERT(bits == 8 || j == num_bitmask_bytes - 1);
}
@@ -861,9 +861,9 @@ it may pose an issue when downgrading though../src/torrent.cpp:5412 | ||
relevance 1 | ../src/torrent.cpp:6319 | should disconnect all peers that have the pieces we have not just seeds. It would be pretty expensive to check all pieces for all peers though |
should disconnect all peers that have the pieces we have
+ | ||
relevance 1 | ../src/torrent.cpp:6338 | should disconnect all peers that have the pieces we have not just seeds. It would be pretty expensive to check all pieces for all peers though |
should disconnect all peers that have the pieces we have
not just seeds. It would be pretty expensive to check all pieces
-for all peers though../src/torrent.cpp:6319 TORRENT_ASSERT(m_state != torrent_status::finished && m_state != torrent_status::seeding);
+for all peers though../src/torrent.cpp:6338 TORRENT_ASSERT(m_state != torrent_status::finished && m_state != torrent_status::seeding);
set_state(torrent_status::finished);
set_queue_position(-1);
@@ -1303,8 +1303,8 @@ use allocate_disk_receive_buffer and release_disk_receive_buffer../incl
? m_ses.settings().user_agent : m_ses.settings().handshake_client_version;
}
- | ||
relevance 0 | ../src/bt_peer_connection.cpp:3356 | move the erasing into the loop above remove all payload ranges that has been sent |
move the erasing into the loop above
-remove all payload ranges that has been sent../src/bt_peer_connection.cpp:3356 for (std::vector<range>::iterator i = m_payloads.begin();
+ | ||
relevance 0 | ../src/bt_peer_connection.cpp:3364 | move the erasing into the loop above remove all payload ranges that has been sent |
move the erasing into the loop above
+remove all payload ranges that has been sent../src/bt_peer_connection.cpp:3364 for (std::vector<range>::iterator i = m_payloads.begin();
i != m_payloads.end(); ++i)
{
i->start -= bytes_transferred;
@@ -1920,7 +1920,7 @@ override at a time../src/policy.cpp:888relevance 0 | ../src/session_impl.cpp:4316 | allow extensions to sort torrents for queuing |
|
allow extensions to sort torrents for queuing../src/session_impl.cpp:4316 if (t->is_auto_managed() && !t->has_error())
+ | ||
relevance 0 | ../src/session_impl.cpp:4299 | allow extensions to sort torrents for queuing |
allow extensions to sort torrents for queuing../src/session_impl.cpp:4299 if (t->is_auto_managed() && !t->has_error())
{
TORRENT_ASSERT(t->m_resume_data_loaded || !t->valid_metadata());
// this torrent is auto managed, add it to
@@ -1971,9 +1971,9 @@ override at a time../src/policy.cpp:888relevance 0 | ../src/session_impl.cpp:4472 | use a lower limit than m_settings.connections_limit to allocate the to 10% or so of connection slots for incoming connections |
|
use a lower limit than m_settings.connections_limit
+ | ||
relevance 0 | ../src/session_impl.cpp:4464 | use a lower limit than m_settings.connections_limit to allocate the to 10% or so of connection slots for incoming connections |
use a lower limit than m_settings.connections_limit
to allocate the to 10% or so of connection slots for incoming
-connections../src/session_impl.cpp:4472 {
+connections../src/session_impl.cpp:4464 {
if (m_boost_connections > max_connections)
{
m_boost_connections -= max_connections;
@@ -2024,7 +2024,7 @@ connections../src/session_impl.cpp:4472relevance 0 | ../src/session_impl.cpp:4506 | make this bias configurable |
|
make this bias configurable../src/session_impl.cpp:4506 | ||
relevance 0 | ../src/session_impl.cpp:4507 | also take average_peers into account, to create a bias for downloading torrents with < average peers |
also take average_peers into account, to create a bias for downloading torrents with < average peers../src/session_impl.cpp:4507 average_peers = num_downloads_peers / num_downloads;
+ | ||
relevance 0 | ../src/session_impl.cpp:4498 | make this bias configurable |
make this bias configurable../src/session_impl.cpp:4498 | ||
relevance 0 | ../src/session_impl.cpp:4499 | also take average_peers into account, to create a bias for downloading torrents with < average peers |
also take average_peers into account, to create a bias for downloading torrents with < average peers../src/session_impl.cpp:4499 average_peers = num_downloads_peers / num_downloads;
if (m_next_connect_torrent == m_torrents.end())
m_next_connect_torrent = m_torrents.begin();
@@ -2075,8 +2075,8 @@ connections../src/session_impl.cpp:4472relevance 0 | ../src/session_impl.cpp:4617 | post a message to have this happen immediately instead of waiting for the next tick |
|
post a message to have this happen
-immediately instead of waiting for the next tick../src/session_impl.cpp:4617 {
+ | ||
relevance 0 | ../src/session_impl.cpp:4609 | post a message to have this happen immediately instead of waiting for the next tick |
post a message to have this happen
+immediately instead of waiting for the next tick../src/session_impl.cpp:4609 {
// we've unchoked this peer, and it hasn't reciprocated
// we may want to increase our estimated reciprocation rate
p->increase_est_reciprocation_rate();
@@ -2127,7 +2127,7 @@ immediately instead of waiting for the next tick../src/session_impl.cpp
prev = i;
}
#endif
- | ||
relevance 0 | ../src/session_impl.cpp:4651 | make configurable |
make configurable../src/session_impl.cpp:4651
+ | ||
relevance 0 | ../src/session_impl.cpp:4643 | make configurable |
make configurable../src/session_impl.cpp:4643
#ifdef TORRENT_DEBUG
for (std::vector<peer_connection*>::const_iterator i = peers.begin()
, end(peers.end()), prev(peers.end()); i != end; ++i)
@@ -2160,7 +2160,7 @@ immediately instead of waiting for the next tick../src/session_impl.cpp
++m_allowed_upload_slots;
- | ||
relevance 0 | ../src/session_impl.cpp:4665 | make configurable |
make configurable../src/session_impl.cpp:4665 >= (*i)->uploaded_in_last_round() * 1000
+ | ||
relevance 0 | ../src/session_impl.cpp:4657 | make configurable |
make configurable../src/session_impl.cpp:4657 >= (*i)->uploaded_in_last_round() * 1000
* (1 + t2->priority()) / total_milliseconds(unchoke_interval));
}
prev = i;
@@ -2419,12 +2419,12 @@ if file_base is used. This is not a widely used feature though../src/st
// makes unaligned requests (and the disk cache is disabled or fully utilized
// for write cache).
- | ||
relevance 0 | ../src/torrent.cpp:1232 | is verify_peer_cert called once per certificate in the chain, and this function just tells us which depth we're at right now? If so, the comment makes sense. any certificate that isn't the leaf (i.e. the one presented by the peer) should be accepted automatically, given preverified is true. The leaf certificate need to be verified to make sure its DN matches the info-hash |
is verify_peer_cert called once per certificate in the chain, and
+ | ||
relevance 0 | ../src/torrent.cpp:1234 | is verify_peer_cert called once per certificate in the chain, and this function just tells us which depth we're at right now? If so, the comment makes sense. any certificate that isn't the leaf (i.e. the one presented by the peer) should be accepted automatically, given preverified is true. The leaf certificate need to be verified to make sure its DN matches the info-hash |
is verify_peer_cert called once per certificate in the chain, and
this function just tells us which depth we're at right now? If so, the comment
makes sense.
any certificate that isn't the leaf (i.e. the one presented by the peer)
should be accepted automatically, given preverified is true. The leaf certificate
-need to be verified to make sure its DN matches the info-hash../src/torrent.cpp:1232 if (pp) p->add_extension(pp);
+need to be verified to make sure its DN matches the info-hash../src/torrent.cpp:1234 if (pp) p->add_extension(pp);
}
// if files are checked for this torrent, call the extension
@@ -2475,12 +2475,12 @@ need to be verified to make sure its DN matches the info-hash../src/tor
{
#if defined(TORRENT_VERBOSE_LOGGING) || defined(TORRENT_LOGGING)
match = true;
- | ||
relevance 0 | ../src/torrent.cpp:5145 | make this more generic to not just work if files have been renamed, but also if they have been merged into a single file for instance maybe use the same format as .torrent files and reuse some code from torrent_info The mapped_files needs to be read both in the network thread and in the disk thread, since they both have their own mapped files structures which are kept in sync |
make this more generic to not just work if files have been
+ | ||
relevance 0 | ../src/torrent.cpp:5164 | make this more generic to not just work if files have been renamed, but also if they have been merged into a single file for instance maybe use the same format as .torrent files and reuse some code from torrent_info The mapped_files needs to be read both in the network thread and in the disk thread, since they both have their own mapped files structures which are kept in sync |
make this more generic to not just work if files have been
renamed, but also if they have been merged into a single file for instance
maybe use the same format as .torrent files and reuse some code from torrent_info
The mapped_files needs to be read both in the network thread
and in the disk thread, since they both have their own mapped files structures
-which are kept in sync../src/torrent.cpp:5145 if (m_seed_mode) m_verified.resize(m_torrent_file->num_pieces(), false);
+which are kept in sync../src/torrent.cpp:5164 if (m_seed_mode) m_verified.resize(m_torrent_file->num_pieces(), false);
super_seeding(rd.dict_find_int_value("super_seeding", 0));
m_last_scrape = rd.dict_find_int_value("last_scrape", 0);
@@ -2531,12 +2531,12 @@ which are kept in sync../src/torrent.cpp:5145relevance 0 | ../src/torrent.cpp:5281 | if this is a merkle torrent and we can't restore the tree, we need to wipe all the bits in the have array, but not necessarily we might want to do a full check to see if we have all the pieces. This is low priority since almost no one uses merkle torrents |
|
if this is a merkle torrent and we can't
+ | ||
relevance 0 | ../src/torrent.cpp:5300 | if this is a merkle torrent and we can't restore the tree, we need to wipe all the bits in the have array, but not necessarily we might want to do a full check to see if we have all the pieces. This is low priority since almost no one uses merkle torrents |
if this is a merkle torrent and we can't
restore the tree, we need to wipe all the
bits in the have array, but not necessarily
we might want to do a full check to see if we have
all the pieces. This is low priority since almost
-no one uses merkle torrents../src/torrent.cpp:5281 add_web_seed(url, web_seed_entry::http_seed);
+no one uses merkle torrents../src/torrent.cpp:5300 add_web_seed(url, web_seed_entry::http_seed);
}
}
@@ -2587,9 +2587,9 @@ no one uses merkle torrents../src/torrent.cpp:5281 | ||
relevance 0 | ../src/torrent.cpp:5469 | make this more generic to not just work if files have been renamed, but also if they have been merged into a single file for instance. using file_base |
make this more generic to not just work if files have been
+ | ||
relevance 0 | ../src/torrent.cpp:5488 | make this more generic to not just work if files have been renamed, but also if they have been merged into a single file for instance. using file_base |
make this more generic to not just work if files have been
renamed, but also if they have been merged into a single file for instance.
-using file_base../src/torrent.cpp:5469 entry::string_type& pieces = ret["pieces"].string();
+using file_base../src/torrent.cpp:5488 entry::string_type& pieces = ret["pieces"].string();
pieces.resize(m_torrent_file->num_pieces());
if (is_seed())
{
@@ -2640,10 +2640,10 @@ using file_base../src/torrent.cpp:5469relevance 0 | ../src/torrent.cpp:8005 | go through the pieces we have and count the total number of downloaders we have. Only count peers that are interested in us since some peers might not send have messages for pieces we have it num_interested == 0, we need to pick a new piece |
|
go through the pieces we have and count the total number
+ | ||
relevance 0 | ../src/torrent.cpp:8073 | go through the pieces we have and count the total number of downloaders we have. Only count peers that are interested in us since some peers might not send have messages for pieces we have it num_interested == 0, we need to pick a new piece |
go through the pieces we have and count the total number
of downloaders we have. Only count peers that are interested in us
since some peers might not send have messages for pieces we have
-it num_interested == 0, we need to pick a new piece../src/torrent.cpp:8005 }
+it num_interested == 0, we need to pick a new piece../src/torrent.cpp:8073 }
rarest_pieces.clear();
rarest_rarity = pp.peer_count;
@@ -3004,7 +3004,7 @@ bool compare_bucket_refresh(routing_table_node const& lhs, routing_table_nod
node_id mask = generate_prefix_mask(num_bits);
// target = (target & ~mask) | (root & mask)
- | ||
relevance 0 | ../include/libtorrent/config.hpp:327 | Make this count Unicode characters instead of bytes on windows |
Make this count Unicode characters instead of bytes on windows../include/libtorrent/config.hpp:327
+ | ||
relevance 0 | ../include/libtorrent/config.hpp:333 | Make this count Unicode characters instead of bytes on windows |
Make this count Unicode characters instead of bytes on windows../include/libtorrent/config.hpp:333
// ==== eCS(OS/2) ===
#elif defined __OS2__
#define TORRENT_OS2
@@ -3260,58 +3260,7 @@ m_sock.bind(endpoint, ec);../include/libtorrent/proxy_base.hpp:166
#endif
}
- | ||
relevance 0 | ../include/libtorrent/torrent.hpp:1336 | there's space for another bit here |
there's space for another bit here../include/libtorrent/torrent.hpp:1336
- // these represent whether or not this torrent is counted
- // in the total counters of active seeds and downloads
- // in the session.
- bool m_is_active_download:1;
- bool m_is_active_finished:1;
-
- // even if we're not built to support SSL torrents,
- // remember that this is an SSL torrent, so that we don't
- // accidentally start seeding it without any authentication.
- bool m_ssl_torrent:1;
-
- // this is set to true if we're trying to delete the
- // files belonging to it. When set, don't write any
- // more blocks to disk!
- bool m_deleted:1;
-
- // set to true while moving the storage
- bool m_moving_storage:1;
-
-
- // ----
-
- // the scrape data from the tracker response, this
- // is optional and may be 0xffffff
- boost::uint32_t m_incomplete:24;
-
- // is set to true when the torrent has
- // been aborted.
- bool m_abort:1;
-
- // true when the torrent should announce to
- // the DHT
- bool m_announce_to_dht:1;
-
- // true when this torrent should anncounce to
- // trackers
- bool m_announce_to_trackers:1;
-
- // true when this torrent should anncounce to
- // the local network
- bool m_announce_to_lsd:1;
-
- // is true if this torrent has allows having peers
- bool m_allow_peers:1;
-
- // set to true when this torrent may not download anything
- bool m_upload_mode:1;
-
- // if this is true, libtorrent may pause and resume
- // this torrent depending on queuing rules. Torrents
- | ||
relevance 0 | ../include/libtorrent/torrent_info.hpp:123 | include the number of peers received from this tracker, at last announce |
include the number of peers received from this tracker, at last announce../include/libtorrent/torrent_info.hpp:123
+ | ||
relevance 0 | ../include/libtorrent/torrent_info.hpp:123 | include the number of peers received from this tracker, at last announce |
include the number of peers received from this tracker, at last announce../include/libtorrent/torrent_info.hpp:123
// if this tracker failed the last time it was contacted
// this error code specifies what error occurred
error_code last_error;
@@ -3362,7 +3311,7 @@ m_sock.bind(endpoint, ec);../include/libtorrent/proxy_base.hpp:166
// flags for the source bitmask, each indicating where
// we heard about this tracker
enum tracker_source
- | ||
relevance 0 | ../include/libtorrent/upnp.hpp:108 | support using the windows API for UPnP operations as well |
support using the windows API for UPnP operations as well../include/libtorrent/upnp.hpp:108 // specific IP addres or DNS name
+ | ||
relevance 0 | ../include/libtorrent/upnp.hpp:108 | support using the windows API for UPnP operations as well |
support using the windows API for UPnP operations as well../include/libtorrent/upnp.hpp:108 // specific IP addres or DNS name
remote_host_must_be_wildcard = 726,
// ExternalPort must be a wildcard and cannot be a
// specific port
@@ -3413,7 +3362,7 @@ public:
// is -1, which means failure. There will not be any error alert notification for
// mappings that fail with a -1 return value.
int add_mapping(protocol_type p, int external_port, int local_port);
- | ||
relevance 0 | ../include/libtorrent/utp_stream.hpp:378 | implement blocking write. Low priority since it's not used (yet) |
implement blocking write. Low priority since it's not used (yet)../include/libtorrent/utp_stream.hpp:378 for (typename Mutable_Buffers::const_iterator i = buffers.begin()
+ | ||
relevance 0 | ../include/libtorrent/utp_stream.hpp:378 | implement blocking write. Low priority since it's not used (yet) |
implement blocking write. Low priority since it's not used (yet)../include/libtorrent/utp_stream.hpp:378 for (typename Mutable_Buffers::const_iterator i = buffers.begin()
, end(buffers.end()); i != end; ++i)
{
using asio::buffer_cast;
@@ -3464,7 +3413,7 @@ public:
TORRENT_ASSERT(false);
}
- | ||
relevance 0 | ../include/libtorrent/kademlia/item.hpp:61 | since this is a public function, it should probably be moved out of this header and into one with other public functions. |
since this is a public function, it should probably be moved
+ | ||
relevance 0 | ../include/libtorrent/kademlia/item.hpp:61 | since this is a public function, it should probably be moved out of this header and into one with other public functions. |
since this is a public function, it should probably be moved
out of this header and into one with other public functions.../include/libtorrent/kademlia/item.hpp:61#include <boost/array.hpp>
namespace libtorrent { namespace dht
diff --git a/include/libtorrent/file_pool.hpp b/include/libtorrent/file_pool.hpp
index 0b2364882..4062a1b6a 100644
--- a/include/libtorrent/file_pool.hpp
+++ b/include/libtorrent/file_pool.hpp
@@ -107,9 +107,6 @@ namespace libtorrent
file_set m_files;
mutex m_mutex;
-#if TORRENT_USE_ASSERTS
- int m_in_use;
-#endif
#if TORRENT_CLOSE_MAY_BLOCK
void closer_thread_fun();
diff --git a/src/file_pool.cpp b/src/file_pool.cpp
index 3cb36db1b..d23a4e912 100644
--- a/src/file_pool.cpp
+++ b/src/file_pool.cpp
@@ -49,16 +49,10 @@ namespace libtorrent
, m_closer_thread(boost::bind(&file_pool::closer_thread_fun, this))
#endif
{
-#if TORRENT_USE_ASSERTS
- m_in_use = 1337;
-#endif
}
file_pool::~file_pool()
{
-#if TORRENT_USE_ASSERTS
- m_in_use = 0;
-#endif
#if TORRENT_CLOSE_MAY_BLOCK
mutex::scoped_lock l(m_closer_mutex);
m_stop_thread = true;
@@ -183,7 +177,6 @@ namespace libtorrent
TORRENT_ASSERT((m & file::rw_mask) == file::read_only
|| (m & file::rw_mask) == file::read_write);
mutex::scoped_lock l(m_mutex);
- TORRENT_ASSERT(m_in_use == 1337);
file_set::iterator i = m_files.find(std::make_pair(st, file_index));
if (i != m_files.end())
{
@@ -268,8 +261,6 @@ namespace libtorrent
void file_pool::remove_oldest()
{
- TORRENT_ASSERT(m_in_use == 1337);
-
file_set::iterator i = std::min_element(m_files.begin(), m_files.end()
, boost::bind(&lru_file_entry::last_use, boost::bind(&file_set::value_type::second, _1))
< boost::bind(&lru_file_entry::last_use, boost::bind(&file_set::value_type::second, _2)));
@@ -286,7 +277,6 @@ namespace libtorrent
void file_pool::release(void* st, int file_index)
{
mutex::scoped_lock l(m_mutex);
- TORRENT_ASSERT(m_in_use == 1337);
file_set::iterator i = m_files.find(std::make_pair(st, file_index));
if (i == m_files.end()) return;
@@ -303,7 +293,6 @@ namespace libtorrent
void file_pool::release(void* st)
{
mutex::scoped_lock l(m_mutex);
- TORRENT_ASSERT(m_in_use == 1337);
if (st == 0)
{
m_files.clear();
@@ -324,7 +313,6 @@ namespace libtorrent
{
TORRENT_ASSERT(size > 0);
- TORRENT_ASSERT(m_in_use == 1337);
if (size == m_size) return;
mutex::scoped_lock l(m_mutex);
m_size = size;
| ||