Steve Anton
9a83dd729b
Batch process pending tasks in the libevent TaskQueue
...
This change improves performance under high load by processing
all pending tasks each time the thread is woken up by libevent.
Additionally, the pipe used to wake up the TaskQueue thread now
not be written to if there's already a pending write on the pipe.
This fixes a bug where under high load the pipe write buffer can
fill and cause tasks to get dropped.
Bug: webrtc:11259, webrtc:8876
Change-Id: Ic82978c71bf9e9a25f281ca4775d46168d161d4e
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/165420
Commit-Queue: Steve Anton <steveanton@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#30202}
2020-01-09 19:49:23 +00:00
..
2020-01-09 12:45:33 +00:00
2019-11-27 12:52:48 +00:00
2019-10-17 21:17:18 +00:00
2019-10-17 21:17:18 +00:00
2019-12-02 07:46:48 +00:00
2019-07-08 13:45:15 +00:00
2019-12-09 18:45:03 +00:00
2019-10-31 11:12:52 +00:00
2019-10-17 21:17:18 +00:00
2019-10-17 21:17:18 +00:00
2019-10-17 21:17:18 +00:00
2019-10-17 21:17:18 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2019-10-15 09:07:44 +00:00
2019-10-15 09:07:44 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2019-11-27 19:34:54 +00:00
2019-11-27 19:34:54 +00:00
2019-07-03 13:30:01 +00:00
2019-07-03 13:30:01 +00:00
2019-07-03 13:30:01 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2020-01-09 19:49:23 +00:00
2019-11-15 11:48:42 +00:00
2019-11-15 11:48:42 +00:00
2019-11-15 11:48:42 +00:00
2019-07-08 13:45:15 +00:00
2019-11-28 17:51:00 +00:00
2019-11-28 17:51:00 +00:00
2019-11-28 17:51:00 +00:00
2019-09-26 09:48:07 +00:00
2019-09-26 09:48:07 +00:00
2019-10-15 09:07:44 +00:00
2020-01-08 14:12:08 +00:00
2019-10-11 13:11:11 +00:00
2019-10-18 09:17:56 +00:00
2019-10-15 09:07:44 +00:00
2019-08-09 08:44:30 +00:00
2019-11-28 15:58:24 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2019-09-17 15:47:29 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2019-08-08 08:29:18 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2019-10-15 09:07:44 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2020-01-03 18:42:32 +00:00
2020-01-03 18:42:32 +00:00
2019-12-03 19:43:12 +00:00
2019-12-03 19:43:12 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2019-11-28 17:51:00 +00:00
2019-11-26 16:29:50 +00:00
2019-11-26 16:29:50 +00:00
2019-07-08 13:45:15 +00:00
2019-10-25 12:07:32 +00:00
2019-10-25 12:07:32 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2019-12-02 09:47:34 +00:00
2019-12-02 09:47:34 +00:00
2019-12-03 19:43:12 +00:00
2019-10-15 09:07:44 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2019-09-17 15:47:29 +00:00
2019-07-08 13:45:15 +00:00
2019-10-15 09:07:44 +00:00
2019-09-25 22:41:00 +00:00
2019-09-25 22:41:00 +00:00
2019-10-15 09:07:44 +00:00
2020-01-08 14:12:08 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2019-12-12 21:54:06 +00:00
2020-01-08 14:12:08 +00:00
2019-09-17 15:47:29 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2019-09-17 15:47:29 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2019-10-28 11:30:23 +00:00
2020-01-08 14:12:08 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2019-11-06 12:16:00 +00:00
2019-10-23 09:33:16 +00:00
2019-11-06 12:16:00 +00:00
2019-07-08 13:45:15 +00:00
2019-11-20 19:38:55 +00:00
2019-10-15 09:07:44 +00:00
2019-11-08 08:43:27 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2019-09-17 15:47:29 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2020-01-02 15:55:24 +00:00
2019-10-18 09:17:56 +00:00
2019-07-08 13:45:15 +00:00
2019-11-26 14:05:20 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2020-01-08 14:12:08 +00:00
2019-10-15 09:07:44 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2019-10-15 09:07:44 +00:00
2019-07-08 13:45:15 +00:00
2019-09-17 15:47:29 +00:00
2019-09-17 15:47:29 +00:00
2020-01-08 14:12:08 +00:00
2019-12-10 08:32:10 +00:00
2020-01-03 18:42:32 +00:00
2019-10-15 09:07:44 +00:00
2019-07-08 13:45:15 +00:00
2020-01-08 14:12:08 +00:00
2019-07-08 13:45:15 +00:00
2020-01-07 09:54:44 +00:00
2019-09-17 15:47:29 +00:00
2019-10-15 09:07:44 +00:00
2019-09-17 15:47:29 +00:00
2019-10-15 09:07:44 +00:00
2019-09-17 15:47:29 +00:00
2019-10-15 09:07:44 +00:00
2019-10-15 09:07:44 +00:00
2019-10-28 11:30:23 +00:00
2020-01-08 14:12:08 +00:00
2020-01-08 14:12:08 +00:00
2019-07-08 13:45:15 +00:00
2019-08-29 14:16:23 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2019-07-30 19:35:37 +00:00
2019-07-30 19:35:37 +00:00
2019-08-20 12:18:28 +00:00
2019-10-21 08:45:02 +00:00
2019-09-17 15:47:29 +00:00
2020-01-09 19:49:23 +00:00
2019-09-17 15:47:29 +00:00
2019-09-17 15:47:29 +00:00
2019-09-17 15:47:29 +00:00
2019-09-17 15:47:29 +00:00
2019-09-17 15:47:29 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2019-12-16 15:46:48 +00:00
2019-12-11 20:42:43 +00:00
2019-12-11 20:42:43 +00:00
2019-12-02 09:47:34 +00:00
2019-07-08 13:45:15 +00:00
2019-10-15 09:07:44 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2019-10-15 09:07:44 +00:00
2019-11-28 15:58:24 +00:00
2019-07-08 13:45:15 +00:00
2020-01-08 14:12:08 +00:00
2020-01-08 14:12:08 +00:00
2019-10-15 09:17:36 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2019-10-22 16:15:56 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00