MJY-HUST commented on code in PR #2768: URL: https://github.com/apache/brpc/pull/2768#discussion_r1775719477
########## src/bthread/key.cpp: ########## @@ -205,53 +214,130 @@ class BAIDU_CACHELINE_ALIGNMENT KeyTable { SubKeyTable* _subs[KEY_1STLEVEL_SIZE]; }; -struct KeyTableList { - KeyTableList() { - keytable = NULL; +class BAIDU_CACHELINE_ALIGNMENT KeyTableList { + public: + KeyTableList() : _head(NULL), _tail(NULL), _length(0) {} + + ~KeyTableList() { + bthread::TaskGroup* g = bthread::tls_task_group; Review Comment: 已修改 -- 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