Run workers on dedicated threads.

Run reader and keep-alive workers on dedicated threads provided by
SingleThreadExecutor.
The thread handlers are stored in EndpointState, the workers are automatically
terminated when EndpointState is destroyed.

PiperOrigin-RevId: 380543888
This commit is contained in:
Janusz Sobczak
2021-06-21 03:54:01 -07:00
committed by Copybara-Service
parent 216a6d8ae0
commit ae7c51e95d
3 changed files with 75 additions and 115 deletions
-3
View File
@@ -29,9 +29,6 @@ class FeatureFlags {
struct Flags {
bool enable_cancellation_flag = false;
bool enable_async_bandwidth_upgrade = true;
// Let endpoint_manager erase deleted endpoint from endpoints_ inside
// function RemoveEndpoint.
bool endpoint_manager_ensure_workers_terminated_inside_remove = true;
// If a scheduled runnable is already running, Cancel() will synchronously
// wait for the task to complete.
bool cancel_waits_for_running_tasks = true;