Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/3party
diff options
context:
space:
mode:
authorAlex Zolotarev <alex@maps.me>2015-06-18 13:02:11 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:53:39 +0300
commit56100edcee402ff71edd4a4823127b4bd420f238 (patch)
treedd75630594a920eabaa4475a2fd01020325c4efc /3party
parent79b780128f42f6744179e5d6872dcffec1e80237 (diff)
[alohalytics] Default empty callback for files processing in the queue.
Diffstat (limited to '3party')
-rw-r--r--3party/Alohalytics/src/messages_queue.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/3party/Alohalytics/src/messages_queue.h b/3party/Alohalytics/src/messages_queue.h
index f8eb3e3636..6d51f7f592 100644
--- a/3party/Alohalytics/src/messages_queue.h
+++ b/3party/Alohalytics/src/messages_queue.h
@@ -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();