Yuqi Du has posted comments on this change. ( http://gerrit.cloudera.org:8080/18674 )
Change subject: [threadpool] Fix scheduler thread a coredump bug ...................................................................... Patch Set 44: (2 comments) Thanks your time and crs. http://gerrit.cloudera.org:8080/#/c/18674/43/src/kudu/util/threadpool.h File src/kudu/util/threadpool.h: http://gerrit.cloudera.org:8080/#/c/18674/43/src/kudu/util/threadpool.h@168 PS43, Line 168: RETURN_NOT_OK(t > In example you are supposed to show how to use API properly, even if it's ' DONE http://gerrit.cloudera.org:8080/#/c/18674/43/src/kudu/util/threadpool.h@172 PS43, Line 172: // // The token and scheduler_pool will be released automatically, its deleted order is : // // satisfied the declaration above. : // : class SchedulerTh > My question was about why to call release on the entities which are about t Yes. In the example the automatically release order is ok and no need special write like that. I mean should keep the order, I have encountered some cases because I use a singleton object hold the threadpool token, which release after thread pool. In the example I'll fix the comments. -- To view, visit http://gerrit.cloudera.org:8080/18674 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: Ie5bc5511a745f3dc12dfe1a6a1813ece41ccc2a8 Gerrit-Change-Number: 18674 Gerrit-PatchSet: 44 Gerrit-Owner: Yuqi Du <[email protected]> Gerrit-Reviewer: Alexey Serbin <[email protected]> Gerrit-Reviewer: Kudu Jenkins (120) Gerrit-Reviewer: Tidy Bot (241) Gerrit-Reviewer: Yingchun Lai <[email protected]> Gerrit-Reviewer: Yuqi Du <[email protected]> Gerrit-Comment-Date: Tue, 26 Jul 2022 00:31:15 +0000 Gerrit-HasComments: Yes
