tdesktop/Telegram
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
..
build Closed alpha version 2.7.1.3. 2021-04-13 19:47:28 +04:00
cmake Add native card input support through smartglocal. 2021-04-08 12:49:28 +04:00
codegen@a4904e076b Update submodules 2021-03-17 18:58:02 +03:00
lib_base@443b7b6b65 Fix build on Linux with different options. 2021-04-13 19:02:30 +04:00
lib_crl@16150bf71d Update submodules & patches commit 2020-08-11 10:55:50 +04:00
lib_lottie@71fecd909b Fix animated stickers with BOM. 2021-04-12 17:48:16 +04:00
lib_qr@92ce41a690 Build Linux version with Qt 5.15.1 in CentOS 7 docker. 2020-11-06 11:21:34 +03:00
lib_rlottie@0671bf7054 Initial build with Xcode. 2019-11-25 18:46:02 +03:00
lib_rpl@e1b96399d9 Fix couple of visual glitches. 2020-10-01 16:29:09 +03:00
lib_spellcheck@5ae6877747 Update submodules 2021-03-17 18:58:02 +03:00
lib_storage@99d7122ddc Update submodules 2021-03-13 19:14:58 +03:00
lib_tl@45faed44e7 Start proper payments processing. 2021-04-06 18:41:15 +04:00
lib_ui@a37e28d2f3 Update lib_ui. 2021-04-12 13:02:53 +04:00
lib_webrtc@5270a1dbbd Start proper payments processing. 2021-04-06 18:41:15 +04:00
lib_webview@91c0e6664d Fix a crash in case of corrupt local data. 2021-04-14 09:45:51 +04:00
Patches No need to rebuild ffmpeg without NEON optimizations anymore 2020-08-31 12:01:43 +04:00
Resources Closed alpha version 2.7.1.3. 2021-04-13 19:47:28 +04:00
SetupFiles
SourceFiles Use fine grained session timers 2021-04-15 16:20:42 +03:00
Telegram Request camera permissions on macOS. 2020-08-11 18:21:40 +04:00
ThirdParty Fix couple of crashes. 2021-04-13 19:46:42 +04:00
CMakeLists.txt Use 48 bit [User/Chat/Channel]Id, 56 bit PeerId. 2021-04-09 15:05:00 +04:00
configure.bat Fix build scripts. 2020-01-02 13:45:21 +03:00
configure.py Add possibility to build on Windows for x64. 2020-11-06 20:22:02 +03:00
configure.sh Closed alpha version 1.9.1.8: Fix macOS build. 2019-12-06 14:22:46 +03:00
create.bat Use single LEGAL file with license and copyright. 2018-01-03 13:23:14 +03:00
Telegram.plist Request camera permissions on macOS. 2020-08-11 18:21:40 +04:00