forked from organicmaps/organicmaps
[alohalytics] Default empty callback for files processing in the queue.
This commit is contained in:
parent
79b780128f
commit
56100edcee
1 changed files with 2 additions and 1 deletions
|
@ -100,7 +100,8 @@ class MessagesQueue final {
|
|||
// Processing stops if processor returns false.
|
||||
// Optional callback is called when all files are processed.
|
||||
// Executed on the WorkerThread.
|
||||
void ProcessArchivedFiles(TArchivedFileProcessor processor, TFileProcessingFinishedCallback callback) {
|
||||
void ProcessArchivedFiles(TArchivedFileProcessor processor,
|
||||
TFileProcessingFinishedCallback callback = TFileProcessingFinishedCallback()) {
|
||||
std::lock_guard<std::mutex> lock(mutex_);
|
||||
commands_queue_.push_back(std::bind(&MessagesQueue::ProcessArchivedFilesCommand, this, processor, callback));
|
||||
condition_variable_.notify_all();
|
||||
|
|
Loading…
Add table
Reference in a new issue