AyuGramDesktop/Telegram/SourceFiles
Loïc Molinari 06618a5253 Use fine grained session timers
The check of sent requests and containers is done unconditionally
every second even though the request timeout is 10 seconds and the
container timeout is 600 seconds. This commit uses fine grained timers
instead in order to avoid useless system wake-up events.

The check of sent requests is now scheduled on demand when a new
request is queued. Then the callback, while parsing queued requests,
computes the delta to the closest expiring request and automatically
schedules the next check if necessary.

Given the high value of the container timeout, its callback is called
repeatedly every 600 seconds, unless it computes a lower delta for an
expiring container using the same logic as for the requests.
2021-04-15 16:20:42 +03:00
..
_other Version 2.5.7. 2021-01-28 15:11:56 +04:00
api Use 48 bit [User/Chat/Channel]Id, 56 bit PeerId. 2021-04-09 15:05:00 +04:00
boxes Fix couple of crashes. 2021-04-13 19:46:42 +04:00
calls Fix creating a scheduled voice chat. 2021-04-12 15:36:19 +04:00
chat_helpers Use 48 bit [User/Chat/Channel]Id, 56 bit PeerId. 2021-04-09 15:05:00 +04:00
codegen/scheme Update API scheme to layer 119. Count replies. 2020-09-29 19:03:18 +03:00
core Closed alpha version 2.7.1.3. 2021-04-13 19:47:28 +04:00
data Fix creating a scheduled voice chat. 2021-04-12 15:36:19 +04:00
dialogs Use 48 bit [User/Chat/Channel]Id, 56 bit PeerId. 2021-04-09 15:05:00 +04:00
export Use data_peer_id in export. 2021-04-12 10:48:17 +04:00
ffmpeg Fix deprecation warnings when building with FFmpeg 4.2. 2020-11-06 11:21:34 +03:00
history Add payment button icon to the corner. 2021-04-13 17:21:24 +04:00
info Use 48 bit [User/Chat/Channel]Id, 56 bit PeerId. 2021-04-09 15:05:00 +04:00
inline_bots Use 48 bit [User/Chat/Channel]Id, 56 bit PeerId. 2021-04-09 15:05:00 +04:00
intro Return request for code resend on auth. 2021-04-13 17:54:12 +04:00
lang Use static QFileInfo::exists 2021-03-15 11:21:05 +03:00
main Use 48 bit [User/Chat/Channel]Id, 56 bit PeerId. 2021-04-09 15:05:00 +04:00
media Remember that media view was switched to PIP and open it as PIP again. 2021-04-12 12:03:48 +03:00
mtproto Use fine grained session timers 2021-04-15 16:20:42 +03:00
overview Apply autofixes from clazy 2021-03-13 15:25:47 +03:00
passport Use 48 bit [User/Chat/Channel]Id, 56 bit PeerId. 2021-04-09 15:05:00 +04:00
payments Second click on Tips button resets tips to $0. 2021-04-13 19:04:27 +04:00
platform Move GTK initialization before Qt initialization 2021-04-13 14:03:00 +03:00
profile Allow blocking channels in voice chats. 2021-03-20 15:43:35 +04:00
settings Use 48 bit [User/Chat/Channel]Id, 56 bit PeerId. 2021-04-09 15:05:00 +04:00
storage Fix a crash in case of corrupt local data. 2021-04-14 09:45:51 +04:00
support Use 48 bit [User/Chat/Channel]Id, 56 bit PeerId. 2021-04-09 15:05:00 +04:00
ui Show floor()-ed days count till voice chat start. 2021-04-13 18:27:38 +04:00
window Update lib_ui. 2021-04-12 13:02:53 +04:00
apiwrap.cpp Use 48 bit [User/Chat/Channel]Id, 56 bit PeerId. 2021-04-09 15:05:00 +04:00
apiwrap.h Use 48 bit [User/Chat/Channel]Id, 56 bit PeerId. 2021-04-09 15:05:00 +04:00
app.cpp Move App::roundRect to Ui::FillRoundRect. 2020-10-30 18:32:18 +03:00
app.h Move App::roundRect to Ui::FillRoundRect. 2020-10-30 18:32:18 +03:00
config.h Add local validation for card information. 2021-04-06 18:41:15 +04:00
facades.cpp Reactivate window on payment close. 2021-04-06 18:41:16 +04:00
facades.h Removed App:wnd for opening settings. 2021-02-04 18:13:03 +04:00
layout.cpp Move App::roundRect to Ui::FillRoundRect. 2020-10-30 18:32:18 +03:00
layout.h Move App::roundRect to Ui::FillRoundRect. 2020-10-30 18:32:18 +03:00
logs.cpp More advanced logging about... logging 2021-04-05 09:22:04 +03:00
logs.h Add some profiling logs to lottie player. 2019-07-01 17:57:39 +02:00
main.cpp Use single LEGAL file with license and copyright. 2018-01-03 13:23:14 +03:00
mainwidget.cpp Add creating of a scheduled group call. 2021-04-06 18:41:16 +04:00
mainwidget.h Rename RPCError to MTP::Error. 2021-03-12 16:58:26 +04:00
mainwindow.cpp Implement three items tray menu on Linux 2021-02-23 17:14:57 +04:00
mainwindow.h Remove some App::wnd() calls. 2021-03-03 11:29:26 +04:00
settings.cpp Version 2.5.9: Move window position to Core::Settings. 2021-02-17 19:20:05 +04:00
settings.h Version 2.5.9: Move window position to Core::Settings. 2021-02-17 19:20:05 +04:00
stdafx.h Use threaded decoding in ffmpeg streaming. 2020-07-28 20:14:45 +04:00