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 2022/03/09 07:17:10 UTC
[GitHub] [incubator-brpc] wwbmmm commented on issue #1715: Why is the public function 'bvar::Variable::count_exposed' not designed to be thread-safe
wwbmmm commented on issue #1715:
URL: https://github.com/apache/incubator-brpc/issues/1715#issuecomment-1062621711
get_var_maps() returns an array with multiple VarMapWithLock, each has a lock, there's no global lock.
Maybe it was designed for performance, the count result is not accurate, it is used in Variable::list_exposed() to reserve a vector.
--
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-unsubscribe@brpc.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org