Yuqi Du has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/18447 )

Change subject: [threadpool] KUDU-3364 Add TimerThread for thread pool
......................................................................


Patch Set 15:

(1 comment)

Thank you.

http://gerrit.cloudera.org:8080/#/c/18447/13/src/kudu/util/threadpool.cc
File src/kudu/util/threadpool.cc:

http://gerrit.cloudera.org:8080/#/c/18447/13/src/kudu/util/threadpool.cc@641
PS13, Line 641: til(const MonoTime& un
> nit: if this is the only usage of task_size_, maybe get rid of it and inste
the task_size used an atomic<int> because of data race.
If we use tasks.empty(), we should use a lock, that's a little heavy.

I can fix it use a lock.



--
To view, visit http://gerrit.cloudera.org:8080/18447
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: If51fce48ae6a45a0bf3314f8a102ee373c5c442e
Gerrit-Change-Number: 18447
Gerrit-PatchSet: 15
Gerrit-Owner: Yuqi Du <[email protected]>
Gerrit-Reviewer: Andrew Wong <[email protected]>
Gerrit-Reviewer: Khazar Mammadli <[email protected]>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)
Gerrit-Reviewer: Yuqi Du <[email protected]>
Gerrit-Comment-Date: Sat, 07 May 2022 11:29:50 +0000
Gerrit-HasComments: Yes

Reply via email to