apache / brpc

brpc is an Industrial-grade RPC framework using C++ Language, which is often used in high performance system such as Search, Storage, Machine learning, Advertisement, Recommendation etc. "brpc" means "better RPC".
https://brpc.apache.org
Apache License 2.0
16.56k stars 3.98k forks source link

Support noncopyable sync objects #2766

Closed chenBright closed 2 months ago

chenBright commented 2 months ago

What problem does this PR solve?

Issue Number:

Problem Summary:

使用bthread_mutex、bthread_cond_t时,一旦不小心发现了拷贝,就会出现未定义行为。

What is changed and the side effects?

Changed:

在C++环境中,禁止bthread_mutex、bthread_cond_t拷贝。

Side effects:


Check List:

wwbmmm commented 2 months ago

LGTM