yanglimingcn commented on PR #2215:
URL: https://github.com/apache/brpc/pull/2215#issuecomment-1524494146

   > 需要考虑线程池退出问题吗?
   
   这块参考了usercode backup pool的实现,它里面有个注释,所以我这块好像也得按照这个方式处理。
   int UserCodeBackupPool::Init() {
       // Like bthread workers, these threads never quit (to avoid potential 
hang
       // during termination of program).
       for (int i = 0; i < FLAGS_usercode_backup_threads; ++i) {
           pthread_t th;
           if (pthread_create(&th, NULL, UserCodeRunner, this) != 0) {
               LOG(ERROR) << "Fail to create UserCodeRunner";
               return -1;
           }
       }
       return 0;
   }


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to