chenBright commented on code in PR #2645: URL: https://github.com/apache/brpc/pull/2645#discussion_r1611156371
########## src/bthread/types.h: ########## @@ -83,8 +83,17 @@ inline std::ostream& operator<<(std::ostream& os, bthread_key_t key) { } #endif // __cplusplus +namespace bthread{ +class KeyTableList; +} + +namespace butil { +template <typename T> class ThreadLocal; +} + typedef struct { - pthread_mutex_t mutex; + pthread_rwlock_t rwlock; + butil::ThreadLocal<bthread::KeyTableList>* list; void* free_keytables; Review Comment: butil::ThreadLocal<bthread::KeyTableList>* -> void* ? -- 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