|
@ -54,6 +54,7 @@ public: |
|
|
/// Nothing doing here.
|
|
|
/// Nothing doing here.
|
|
|
void doneFetch() { resetFetch(); } |
|
|
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& asked() const { return m_asked; } |
|
|
RangeMask<unsigned> const& attemped() const { return m_attempted; } |
|
|
RangeMask<unsigned> const& attemped() const { return m_attempted; } |
|
|
|
|
|
|
|
@ -69,7 +70,7 @@ private: |
|
|
|
|
|
|
|
|
DownloadMan* m_man = nullptr; |
|
|
DownloadMan* m_man = nullptr; |
|
|
|
|
|
|
|
|
Mutex m_fetch; |
|
|
mutable Mutex m_fetch; |
|
|
h256Set m_remaining; |
|
|
h256Set m_remaining; |
|
|
std::map<h256, unsigned> m_indices; |
|
|
std::map<h256, unsigned> m_indices; |
|
|
RangeMask<unsigned> m_asked; |
|
|
RangeMask<unsigned> m_asked; |
|
|