2017-12-17 18:41:34 +00:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
2018-01-03 10:23:14 +00:00
|
|
|
the official desktop application for the Telegram messaging service.
|
2017-12-17 18:41:34 +00:00
|
|
|
|
2018-01-03 10:23:14 +00:00
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
2017-12-17 18:41:34 +00:00
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
namespace Core {
|
|
|
|
|
|
|
|
class MainQueueProcessor : public QObject {
|
|
|
|
public:
|
|
|
|
MainQueueProcessor();
|
|
|
|
~MainQueueProcessor();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
bool event(QEvent *event) override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
void acquire();
|
|
|
|
void release();
|
|
|
|
|
2019-07-04 13:33:11 +00:00
|
|
|
rpl::lifetime _lifetime;
|
|
|
|
|
2017-12-17 18:41:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Core
|