Fork自 RT-Thread / rt-thread
体验新版 GitCode,发现更多精彩内容 >>
There can be a race condition that the sem has alread been detached after we did the cleanup. Besides, there is a RT_IPC_CMD_RESET command in rt_sem_control which is more clear in setting the sem values.
拖放文件到此处或点击上传