Commit Graph

41 Commits

Author SHA1 Message Date
levlam
628b8901bc Optimize logging to NULL on Windows. Fixes #2112.
It is possible to do only about 100 writes to NULL per second, which is about 8-80 times less than even performance of writes to a console app.
2022-10-03 15:11:23 +03:00
levlam
8085779cdc Update copyright year. 2022-01-01 03:35:39 +03:00
levlam
81b38d5607 Mark move constructors/assignment operators noexcept. 2021-10-18 14:36:15 +03:00
levlam
40c5d47717 Make inherited classes final if possible. 2021-07-04 05:58:54 +03:00
levlam
edfa5d1d98 Use final instead of override. 2021-07-03 23:51:36 +03:00
levlam
a6a4eb6616 Don't include SliceBuilder.h in logging.h. 2021-05-17 15:21:11 +03:00
levlam
e031a2c6c1 Improve Slice::truncate usage. 2021-02-04 15:54:12 +03:00
levlam
52c1da0a70 Update copyright year. 2021-01-01 15:57:46 +03:00
levlam
c1a1fc881c Fix BufferedStdinImpl destruction. 2020-12-24 20:49:08 +03:00
levlam
47e413e0b8 Fix BufferedStdinImpl reference counter. 2020-12-24 19:17:06 +03:00
levlam
b582eb346a Undo move_as_native_fd changes. 2020-12-24 18:43:26 +03:00
levlam
1b92e2d57a Return back ScopeExit usage. 2020-12-24 17:16:56 +03:00
levlam
c1a16acd53 Don't check that Stdin/Stdout/Stderr are unlocked on exit. 2020-12-24 17:12:50 +03:00
levlam
8049a55081 Minor.
GitOrigin-RevId: 9ce34cfb96d0a86a71d95f1d12d8365d268285e0
2020-07-21 19:48:01 +03:00
Arseny Smirnov
38ef3a75cc PollableFd: explicit sync_with_poll
GitOrigin-RevId: 71fa35a594816e84e372ebcfa9d0077a13f26a62
2020-07-21 18:29:39 +03:00
levlam
7767842d4c Minor fixes.
GitOrigin-RevId: b9f67c5e5edf818610c1739533f01a7873e6e1b6
2020-07-14 03:37:04 +03:00
levlam
8872fbf6ac Fix tdutils after merge.
GitOrigin-RevId: 5b9a863e405a9e3782157570156fda71bf2bb589
2020-06-26 02:24:13 +03:00
Arseny Smirnov
fd6423dedf update tdutils from another project
GitOrigin-RevId: 79b8eb2ba229d733f82dbb17b8bd7f27471c9472
2020-06-24 14:47:36 +03:00
levlam
80c35676a2 Update copyright year.
GitOrigin-RevId: 09afb551b6e637dc69739fa735b0051a38b9e14c
2020-01-01 04:23:48 +03:00
levlam
0b6c1d226f Update clag-format to the latest (190926/r372920) version.
GitOrigin-RevId: 7861ae8ad28eb1f6a06ff3c6f56eff3f67b1d24c
2019-09-28 05:14:21 +03:00
levlam
f29c4a9ed1 Remove unneded explicit td::.
GitOrigin-RevId: e3888510ce72a55072a11d105311f07b4ba42bbf
2019-09-15 06:19:46 +03:00
levlam
98b8929932 Fix includes.
GitOrigin-RevId: 7b62de39f2d62ac8c14c24fb83041c717ba49873
2019-07-23 01:50:12 +03:00
levlam
635aca2924 Fix tdutils after update.
GitOrigin-RevId: afc6d10dd0e2b2a7193dd2c96f07d5ca1cb11a00
2019-07-21 21:07:07 +03:00
Arseny Smirnov
02c31f486f tdutils: update from other project
GitOrigin-RevId: 73c666dbdd72811b151a48504716ed4aee6af1a0
2019-07-06 13:29:15 +02:00
levlam
d494a3e13f Return stdin to blocking state when closing.
GitOrigin-RevId: db4f43a526b099f07dbc5c1c717cc4e67aad5ee7
2019-03-22 01:59:16 +03:00
levlam
eaebfad034 Update copyright year.
GitOrigin-RevId: 359e2b43322222922c44c430d3814b0a4c778dc6
2019-01-01 01:02:34 +03:00
levlam
09c4422c50 Better error messages.
GitOrigin-RevId: 70b1cea8a4ba9fa42074b5bc7bd7d339ae1c1779
2018-10-07 02:47:50 +03:00
levlam
f948956bf7 Use td::unique_ptr instead of std::unique_ptr whenever possible.
GitOrigin-RevId: 424beb72dc62efdefdbffb75f1036ba9417f84cb
2018-09-27 04:19:03 +03:00
levlam
86ef95e0a8 Fix CE and some includes.
GitOrigin-RevId: e181d67a6ed36c9cbd444cf2282902b6a90881be
2018-09-13 06:08:49 +03:00
Arseny Smirnov
f72bcd230f Update test for walk_path. It is CE now
GitOrigin-RevId: 850f17f25c3f1e8e3b63fc93936455883be35c4f
2018-09-12 15:07:54 +03:00
levlam
f8568f0400 Fix some includes.
GitOrigin-RevId: 253f114339c6b05b08705c188df1cb4c917537d2
2018-09-12 06:26:05 +03:00
levlam
d2171a77e1 Fix StdStreams initialization in UWP.
GitOrigin-RevId: 3f916079a8ad17eeec7a02c7caeb2e0f143f2341
2018-09-12 04:53:04 +03:00
levlam
496d7b3e52 Fix CE.
GitOrigin-RevId: 34d4d5f28e8acebb39c4be9d3b7ecf631c017d3c
2018-09-11 19:57:50 +03:00
Arseny Smirnov
5cdc7c2c53 BufferedStdin: simplify
GitOrigin-RevId: 8674573bea8246cf2e5c21bbdaae98712d8c7cc4
2018-09-11 17:48:29 +03:00
levlam
10118d0449 Simplify NativeFd.
GitOrigin-RevId: 07a33f1ad18b426ef339da76467c667607c1a3b9
2018-09-11 16:27:20 +03:00
Arseny Smirnov
11ccf8f4c8 bugfix
GitOrigin-RevId: e30c5724d5a1b24378bdc250fc40940a45b450b8
2018-09-11 15:04:17 +03:00
levlam
a165b42575 Minor fixes.
GitOrigin-RevId: 793bc74ee1c82b5a86e044be65e4be0e5ce00336
2018-09-10 21:45:34 +03:00
Arseny Smirnov
3e991d2464 Bugfix
GitOrigin-RevId: bc0e81dec7fed8ef1fa47a8c529bc2a3aee01b48
2018-09-10 20:22:21 +03:00
Arseny Smirnov
3266984243 BufferedStdin: windows
GitOrigin-RevId: ff7393ea2d648de84f691043aa7780260af77f6d
2018-09-10 19:21:34 +03:00
levlam
fd90bf435e A lot of fixes.
GitOrigin-RevId: c7c16991da51e09a685537a444385852e8e93af4
2018-09-07 03:41:21 +03:00
Arseny Smirnov
bf15a5ac12 tg_cli works under posix
GitOrigin-RevId: 632e05de183a55b045f74e09ca8d41060f55ad41
2018-08-17 16:41:51 +03:00