mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-09-08 22:58:03 -04:00
Merge pull request #999 from kiwix/const-abi
This commit is contained in:
commit
45b3cfca16
@ -204,7 +204,7 @@ class Downloader
|
|||||||
/**
|
/**
|
||||||
* Get the ids of the managed downloads.
|
* Get the ids of the managed downloads.
|
||||||
*/
|
*/
|
||||||
std::vector<std::string> getDownloadIds() const;
|
std::vector<std::string> getDownloadIds();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
mutable std::mutex m_lock;
|
mutable std::mutex m_lock;
|
||||||
|
@ -157,7 +157,7 @@ void Downloader::close()
|
|||||||
mp_aria->close();
|
mp_aria->close();
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<std::string> Downloader::getDownloadIds() const {
|
std::vector<std::string> Downloader::getDownloadIds() {
|
||||||
std::unique_lock<std::mutex> lock(m_lock);
|
std::unique_lock<std::mutex> lock(m_lock);
|
||||||
std::vector<std::string> ret;
|
std::vector<std::string> ret;
|
||||||
for(auto& p:m_knownDownloads) {
|
for(auto& p:m_knownDownloads) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user