chenBright opened a new pull request, #2296:
URL: https://github.com/apache/brpc/pull/2296

   ### What problem does this PR solve?
   
   Issue Number:
   
   Problem Summary:
   
   对于pthread_key使用比较多的场景,pthread_key的硬上限(1024)太小了,不能满足需求。
   
   ### What is changed and the side effects?
   
   Changed:
   
   
参考bRPC中WrapperTLSGroup和pthread_key,实现了thread_key_xxx,解决pthread_key硬上限(1024)太小的问题。
   
thread_key_xxx接口与pthread_key_xxx接口一一对应。同时在thread_key_xxx的基础上封装了ThreadLocal模板类,方便用户使用tls。
   
   Side effects:
   - Performance effects(性能影响):
   
   - Breaking backward compatibility(向后兼容性): 
   
   ---
   ### Check List:
   - Please make sure your changes are compilable(请确保你的更改可以通过编译).
   - When providing us with a new feature, it is best to add related 
tests(如果你向我们增加一个新的功能, 请添加相关测试).
   - Please follow [Contributor Covenant Code of 
Conduct](../../master/CODE_OF_CONDUCT.md).(请遵循贡献者准则).
   


-- 
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