webrtc/rtc_base/task_utils
Tommi 86ee89f73e Simplify reference counting implementation of PendingTaskSafetyFlag.
On a 32bit system, this reduces the allocation size of the flag
down from 12 bytes to 8, and removes the need for a vtable (the extra
4 bytes are the vtable pointer).

The downside is that this change makes the binary layout of the
flag, less compatible with RefCountedObject<> based reference counting
objects and thus we don't immediately get the benefits of identical
COMDAT folding and subsequently there's a slight binary size increase.
With wider use, the binary size benefits will come.

Bug: none
Change-Id: I04129771790a3258d6accaf0ab1258b7a798a55e
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/215681
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Tommi <tommi@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#33793}
2021-04-21 07:04:01 +00:00
..
BUILD.gn Simplify reference counting implementation of PendingTaskSafetyFlag. 2021-04-21 07:04:01 +00:00
pending_task_safety_flag.cc Simplify reference counting implementation of PendingTaskSafetyFlag. 2021-04-21 07:04:01 +00:00
pending_task_safety_flag.h Simplify reference counting implementation of PendingTaskSafetyFlag. 2021-04-21 07:04:01 +00:00
pending_task_safety_flag_unittest.cc Add support for setting the initial state to the pending task flag. 2021-04-19 16:00:25 +00:00
repeating_task.cc Add support for injecting Clock to RepeatingTaskHandle. 2020-05-18 14:11:44 +00:00
repeating_task.h Add support for injecting Clock to RepeatingTaskHandle. 2020-05-18 14:11:44 +00:00
repeating_task_unittest.cc Add support for injecting Clock to RepeatingTaskHandle. 2020-05-18 14:11:44 +00:00
to_queued_task.h Delete rtc::Bind 2021-01-29 08:24:43 +00:00
to_queued_task_unittest.cc Remove the PendingTaskSafetyFlag::Pointer type add ScopedTaskSafety. 2020-05-13 14:17:39 +00:00