我可以在界面中使用 chromium base::callback
吗?
我会将回调放到另一个动态链接库线程池中,但我不确定它是否正确以及哪个模块
释放回调?
最佳答案
简短的回答是肯定的,你可以。来自文档
// The Callback objects themselves should be passed by const-reference, and
// stored by copy. They internally store their state via a refcounted class
// and thus do not need to be deleted.
//
// The reason to pass via a const-reference is to avoid unnecessary
// AddRef/Release pairs to the internal state.
关于c++ 可以在接口(interface)中使用 chromium base::callback 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21846671/