4 Star 1 Fork 3

openEuler/embedded-ipc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
ipc_stub_manager.cpp 479 Bytes
一键复制 编辑 原始数据 按行查看 历史
Zheng Liming 提交于 2022-09-15 20:32 +08:00 . Support to device_auth
#include "ipc_stub_manager.h"
namespace OHOS {
std::map< unsigned long long, sptr< IPCObjectStub > > IPCStubManager::stubMap_;
std::mutex IPCStubManager::mutex_;
unsigned long long IPCStubManager::GetHandleNum()
{
std::lock_guard< std::mutex > lock(mutex_);
return stubMap_.size();
}
void IPCStubManager::InsertStub(unsigned long long handle, sptr< IPCObjectStub > stub)
{
std::lock_guard< std::mutex > lock(mutex_);
stubMap_.emplace(handle, stub);
}
} // namespace OHOS
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openeuler/embedded-ipc.git
git@gitee.com:openeuler/embedded-ipc.git
openeuler
embedded-ipc
embedded-ipc
master

搜索帮助