Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

Commit

Permalink
Merge branch 'develop' into poc-6+
Browse files Browse the repository at this point in the history
  • Loading branch information
gavofyork committed Oct 5, 2014
2 parents 0430da9 + 2ed2d47 commit 5cc9348
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion alethzero/DownloadView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void DownloadView::paintEvent(QPaintEvent*)
unsigned h = 0;
m_man->foreachSub([&](DownloadSub const& sub)
{
if (sub.asked().contains(i))
if (sub.askedContains(i))
s = h;
h++;
});
Expand Down
3 changes: 2 additions & 1 deletion libethereum/DownloadMan.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ class DownloadSub
/// Nothing doing here.
void doneFetch() { resetFetch(); }

bool askedContains(unsigned _i) const { Guard l(m_fetch); return m_asked.contains(_i); }
RangeMask<unsigned> const& asked() const { return m_asked; }
RangeMask<unsigned> const& attemped() const { return m_attempted; }

Expand All @@ -69,7 +70,7 @@ class DownloadSub

DownloadMan* m_man = nullptr;

Mutex m_fetch;
mutable Mutex m_fetch;
h256Set m_remaining;
std::map<h256, unsigned> m_indices;
RangeMask<unsigned> m_asked;
Expand Down

0 comments on commit 5cc9348

Please sign in to comment.