You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2019/06/13 04:06:07 UTC
[GitHub] [incubator-brpc] zhuchong0329 opened a new issue #801: bthread_id_t是否可以用一个指针取代
zhuchong0329 opened a new issue #801: bthread_id_t是否可以用一个指针取代
URL: https://github.com/apache/incubator-brpc/issues/801
bthread_id_t其实是一个64位ID,用作是作为correlation_id,在O(1)时间内找到对应的Controller。这种模式下是不是用一个指针就能到达目的了,而且应该会更快,至于lock和join这些操作,只要在对应的Controller里面加入mutex等类型就可以了吧?望brpc的大神解答一下疑惑。
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org