mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 22:56:12 -04:00
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:
committed by
Copybara-Service
parent
216a6d8ae0
commit
ae7c51e95d
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user