[修改] 测试
This commit is contained in:
@ -6,4 +6,6 @@
|
||||
```shell
|
||||
# Top
|
||||
cmake -S . -B output -G "Unix Makefiles"
|
||||
|
||||
make -C output
|
||||
```
|
||||
@ -34,6 +34,7 @@ int main(){
|
||||
lockf(fd[1],0,0); // 管道解锁
|
||||
sem_post(resource1); // 信号量开锁,name_sem1
|
||||
sem_close(resource1); // 有名信号量关闭,name_sem1
|
||||
|
||||
exit(0); // 线程退出
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user