*** empty log message ***

This commit is contained in:
Arvid Norberg 2003-10-31 10:56:03 +00:00
parent 6466b46573
commit b5914b5528
4 changed files with 7 additions and 7 deletions

View File

@ -147,7 +147,7 @@ namespace libtorrent
void initialize_pieces(torrent* t,
const boost::filesystem::path& path,
detail::piece_checker_data* data,
boost::mutex* mutex);
boost::mutex& mutex);
int bytes_left() const { return m_bytes_left; }

View File

@ -101,7 +101,7 @@ namespace libtorrent
void print(std::ostream& os) const;
void allocate_files(detail::piece_checker_data* data,
boost::mutex* mutex,
boost::mutex& mutex,
const std::string& save_path)
{
m_storage.initialize_pieces(this, save_path, data, mutex);

View File

@ -105,7 +105,7 @@ namespace libtorrent
try
{
t->torrent_ptr->allocate_files(t, &m_mutex, t->save_path);
t->torrent_ptr->allocate_files(t, m_mutex, t->save_path);
// lock the session to add the new torrent
boost::mutex::scoped_lock l(m_mutex);

View File

@ -333,7 +333,7 @@ bool libtorrent::storage::verify_piece(piece_file& file)
void libtorrent::storage::initialize_pieces(torrent* t,
const boost::filesystem::path& path,
detail::piece_checker_data* data,
boost::mutex* mutex)
boost::mutex& mutex)
{
m_save_path = path;
m_torrent_file = &t->torrent_file();
@ -452,7 +452,7 @@ void libtorrent::storage::initialize_pieces(torrent* t,
left_to_write -= chunksize;
progress += chunksize;
boost::mutex::scoped_lock l(*mutex);
boost::mutex::scoped_lock l(mutex);
data->progress = static_cast<float>(progress) / total_bytes;
if (data->abort) return;
}
@ -460,7 +460,7 @@ void libtorrent::storage::initialize_pieces(torrent* t,
if (left_to_write > 0) f.write(zeros, left_to_write);
progress += left_to_write;
boost::mutex::scoped_lock l(*mutex);
boost::mutex::scoped_lock l(mutex);
data->progress = static_cast<float>(progress) / total_bytes;
if (data->abort) return;
}
@ -484,7 +484,7 @@ void libtorrent::storage::initialize_pieces(torrent* t,
// std::cout << i+1 << " / " << m_torrent_file->num_pieces() << " missing: " << missing << "\r";
progress += m_torrent_file->piece_size(i);
boost::mutex::scoped_lock l(*mutex);
boost::mutex::scoped_lock l(mutex);
data->progress = static_cast<float>(progress) / total_bytes;
if (data->abort) return;
}