Documentation typos and minor cleanup

This commit is contained in:
Alden Torres 2016-01-20 20:48:23 -05:00
parent 0cb35d714c
commit 218d33c545
3 changed files with 4 additions and 6 deletions

View File

@ -451,7 +451,7 @@ namespace libtorrent
// ``no_recheck_incomplete_resume`` determines if the storage should
// check the whole files when resume data is incomplete or missing or
// whether it should simply assume we don't have any of the data. By
// default, this is determined by the existance of any of the files.
// default, this is determined by the existence of any of the files.
// By setting this setting to true, the files won't be checked, but
// will go straight to download mode.
no_recheck_incomplete_resume,

View File

@ -73,7 +73,7 @@ namespace libtorrent
// the number of bytes of the number
static const int size = number_size * sizeof(boost::uint32_t);
// constructs an all-sero sha1-hash
// constructs an all-zero sha1-hash
sha1_hash() { clear(); }
// returns an all-F sha1-hash. i.e. the maximum value

View File

@ -70,7 +70,7 @@ const vm_purgable_t vm_purgable_nonvolatile = VM_PURGABLE_NONVOLATILE;
See slides: http://www-vlsi.stanford.edu/smart_memories/protected/meetings/spring2004/arc-fast.pdf
This cache has a few modifications to make it fit the bittorrent use
case better. It has a few more lists and it deferres the eviction
case better. It has a few more lists and it defers the eviction
of pieces.
read_lru1
@ -437,7 +437,7 @@ void block_cache::cache_hit(cached_piece_entry* p, void* requester, bool volatil
TORRENT_ASSERT(p);
TORRENT_ASSERT(p->in_use);
// move the piece into this queue. Whenever we have a cahe
// move the piece into this queue. Whenever we have a cache
// hit, we move the piece into the lru2 queue (i.e. the most
// frequently used piece). However, we only do that if the
// requester is different than the last one. This is to
@ -1837,8 +1837,6 @@ bool block_cache::maybe_free_piece(cached_piece_entry* pe)
|| !pe->jobs.empty())
return false;
boost::shared_ptr<piece_manager> s = pe->storage;
DLOG(stderr, "[%p] block_cache maybe_free_piece "
"piece: %d refcount: %d marked_for_deletion: %d\n"
, static_cast<void*>(this)