Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 429321fa authored by Matthew Maurer's avatar Matthew Maurer
Browse files

DoH: Lock access to DohDispatcher

Previously, we exposed &mut APIs to interacting with DohDispatcher. This
is fine, but is not a legal API to use in a multithreaded context
without a lock. To support this usage, we wrap it in a Mutex and only
require a & reference which can be safely materialized from multiple
threads since Mutex is Sync.

Bug: 202080500
Change-Id: I7eb8dbaa74202033a8aa89fdedade792070aa483
parent aa0dac6f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment