aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/thread_pool
diff options
context:
space:
mode:
authorHaibo Huang <hhb@google.com>2021-02-09 18:18:56 -0800
committerStephen Hines <srhines@google.com>2021-03-03 21:34:52 +0000
commite3d8d80d2d8744ccdcd175323e0864c8f30fcedc (patch)
tree16d053e70d21e456d52f4a7762ee41441342b7a2 /src/runtime/thread_pool
parent925d648e545e70d6a4faae3d7efe5e0de885f922 (diff)
downloadtokio-e3d8d80d2d8744ccdcd175323e0864c8f30fcedc.tar.gz
Upgrade rust/crates/tokio to 1.2.0
Test: make Change-Id: Ib0f6a5201b51e9d122b6e867388a3856e16f803a
Diffstat (limited to 'src/runtime/thread_pool')
-rw-r--r--src/runtime/thread_pool/idle.rs2
-rw-r--r--src/runtime/thread_pool/worker.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/thread_pool/idle.rs b/src/runtime/thread_pool/idle.rs
index 6e692fd..b77cce5 100644
--- a/src/runtime/thread_pool/idle.rs
+++ b/src/runtime/thread_pool/idle.rs
@@ -118,7 +118,7 @@ impl Idle {
if sleepers[index] == worker_id {
sleepers.swap_remove(index);
- // Update the state accordingly whle the lock is held.
+ // Update the state accordingly while the lock is held.
State::unpark_one(&self.state);
return;
diff --git a/src/runtime/thread_pool/worker.rs b/src/runtime/thread_pool/worker.rs
index 31712e4..dbd1aff 100644
--- a/src/runtime/thread_pool/worker.rs
+++ b/src/runtime/thread_pool/worker.rs
@@ -337,7 +337,7 @@ impl Context {
}
fn run_task(&self, task: Notified, mut core: Box<Core>) -> RunResult {
- // Make sure thew orker is not in the **searching** state. This enables
+ // Make sure the worker is not in the **searching** state. This enables
// another idle worker to try to steal work.
core.transition_from_searching(&self.worker);