More work to let clients download avatars from an external server.

This commit is contained in:
lotodore
2009-03-21 11:36:10 +00:00
parent 55a29f9a38
commit c3dc770c2e
5 changed files with 56 additions and 22 deletions
+8 -1
View File
@@ -50,7 +50,14 @@ DownloaderThread::QueueDownload(unsigned downloadId, const std::string &url, con
}
bool
DownloaderThread::PollDownloadResult(unsigned &downloadId, std::vector<unsigned char> &filedata)
DownloaderThread::HasDownloadResult() const
{
boost::mutex::scoped_lock lock(m_downloadDoneQueueMutex);
return !m_downloadDoneQueue.empty();
}
bool
DownloaderThread::GetDownloadResult(unsigned &downloadId, std::vector<unsigned char> &filedata)
{
bool result = false;
boost::mutex::scoped_lock lock(m_downloadDoneQueueMutex);