diff options
author | Max Kellermann <max@duempel.org> | 2014-01-29 20:16:43 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-30 18:47:05 +0100 |
commit | c6725884bc155da431889468c86c546f0f64f9a1 (patch) | |
tree | 61d89751ecc98db9600620ac1788f32dea9214e1 /src/db/update/InotifyQueue.hxx | |
parent | a31738f6f1473f4f621bc16513ed0c6024749389 (diff) | |
download | mpd-c6725884bc155da431889468c86c546f0f64f9a1.tar.gz mpd-c6725884bc155da431889468c86c546f0f64f9a1.tar.xz mpd-c6725884bc155da431889468c86c546f0f64f9a1.zip |
db/update: convert to OO API
Move global variables into the new classes. That may allow multiple
update threads for multiple databases one day.
Diffstat (limited to '')
-rw-r--r-- | src/db/update/InotifyQueue.hxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/db/update/InotifyQueue.hxx b/src/db/update/InotifyQueue.hxx index 99e2635b1..a9abc2969 100644 --- a/src/db/update/InotifyQueue.hxx +++ b/src/db/update/InotifyQueue.hxx @@ -26,11 +26,16 @@ #include <list> #include <string> +class UpdateService; + class InotifyQueue final : private TimeoutMonitor { + UpdateService &update; + std::list<std::string> queue; public: - InotifyQueue(EventLoop &_loop):TimeoutMonitor(_loop) {} + InotifyQueue(EventLoop &_loop, UpdateService &_update) + :TimeoutMonitor(_loop), update(_update) {} void Enqueue(const char *uri_utf8); |