chenBright commented on issue #2736: URL: https://github.com/apache/brpc/issues/2736#issuecomment-2287729053
使用std:mutex的话,会阻塞worker线程直到取出任务为止,是不是std::promise::set_value所在bthread会一直占有worker线程呢? 可能只是概率小一些而已。当std::future::get的并发数大于worker数,就会阻塞全部worker线程了,这是潜在的问题,跟std:mutex还是bthread_mutex已经没啥关系了。 -- 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: dev-unsubscr...@brpc.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For additional commands, e-mail: dev-h...@brpc.apache.org