[alohalytics] Default empty callback for files processing in the queue.

This commit is contained in:
Alex Zolotarev 2015-06-18 13:02:11 +03:00
parent 79b780128f
commit 56100edcee

View file

@ -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();