This is an automated email from the ASF dual-hosted git repository.

gydong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-brpc.git


The following commit(s) were added to refs/heads/master by this push:
     new c29b614  bthread/timer_thread: fix typo
     new e9d8f84  Merge pull request #1327 from lorinlee/fix-typo
c29b614 is described below

commit c29b6143bf01032943ada752e8c29e92a477631b
Author: LorinLee <[email protected]>
AuthorDate: Sun Jan 10 03:10:49 2021 +0800

    bthread/timer_thread: fix typo
---
 src/bthread/timer_thread.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/bthread/timer_thread.cpp b/src/bthread/timer_thread.cpp
index 88bdcf2..2c2dd9b 100644
--- a/src/bthread/timer_thread.cpp
+++ b/src/bthread/timer_thread.cpp
@@ -244,11 +244,11 @@ TimerThread::TaskId TimerThread::schedule(
 
 // Notice that we don't recycle the Task in this function, let TimerThread::run
 // do it. The side effect is that we may allocated many unscheduled tasks 
before
-// TimerThread wakes up. The number is approximiately qps * timeout_s. Under 
the
+// TimerThread wakes up. The number is approximately qps * timeout_s. Under the
 // precondition that ResourcePool<Task> caches 128K for each thread, with some
 // further calculations, we can conclude that in a RPC scenario:
 //   when timeout / latency < 2730 (128K / sizeof(Task))
-// unscheduled tasks do not occupy addititonal memory. 2730 is a large ratio
+// unscheduled tasks do not occupy additional memory. 2730 is a large ratio
 // between timeout and latency in most RPC scenarios, this is why we don't
 // try to reuse tasks right now inside unschedule() with more complicated code.
 int TimerThread::unschedule(TaskId task_id) {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to