brpc icon indicating copy to clipboard operation
brpc copied to clipboard

butex的使用必须要bthread::butex_create_checked<uint32_t>()这样做么, 直接使用栈上的变量不行么

Open jiangdongzi opened this issue 6 months ago • 1 comments

jiangdongzi avatar Jun 18 '25 06:06 jiangdongzi

A design consideration is written in the comment. https://github.com/apache/brpc/blob/d5cdbe69a653684f6593b3448a685a27eb2621a1/src/bthread/butex.cpp#L197-L260

chenBright avatar Jun 29 '25 08:06 chenBright