Add @thirtythreeforty's std::function<> variant (#4892)

Also convert `batchqueue.cc` where applicable.
This commit is contained in:
Flössie
2018-11-11 20:32:01 +01:00
parent 1d0c128209
commit 00b62d2b65
3 changed files with 44 additions and 40 deletions

View File

@@ -19,6 +19,7 @@
#ifndef __GUI_UTILS_
#define __GUI_UTILS_
#include <functional>
#include <map>
#include <gtkmm.h>
@@ -98,6 +99,7 @@ public:
mutex.unlock();
}
void add(std::function<bool ()> function, gint priority = G_PRIORITY_DEFAULT_IDLE);
void destroy();
private: