weingithub commented on issue #2456: URL: https://github.com/apache/brpc/issues/2456#issuecomment-1825077138
> > > 不能在pthread锁临界区内执行会挂起bthread的操作(bthread_mutex、rpc、bthread_usleep等) > > > > > > 不能在pthread锁临界区内执行会挂起bthread的操作(bthread_mutex、rpc、bthread_usleep等)。这个rpc不是指brpc吗? > > 是的。异步rpc应该不会有问题,同步rpc在发完数据后,会调用Join等回包,会挂起bthread。 > > https://github.com/apache/brpc/blob/806f4d46c9393f6aeb92aa558d95fe95d1784355/src/brpc/channel.cpp#L576-L587 谢谢啦。 -- 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