lichao
2021-05-18 cf05ea3d9f43e4e84d621e1f9d54cbef552b6e2b
fix center init mutex.
1个文件已修改
2 ■■■ 已修改文件
src/defs.cpp 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/defs.cpp
@@ -104,7 +104,7 @@
// which node might crash inside and cause deadlock.
bool CenterInit(bhome_shm::SharedMemory &shm)
{
    Mutex *mutex = shm.Create<Mutex>("shm_center_lock");
    Mutex *mutex = shm.FindOrCreate<Mutex>("shm_center_lock");
    if (!mutex || !mutex->try_lock()) {
        return false;
    }