|
NexusForce 1.0.0
A rigorously engineered full-stack C++ backend library.
|
信号量支持 更多...
#include "atomic_base.hpp"#include "atomic_timed_wait.hpp"#include <bits/local_lim.h>#include <semaphore.h>类 | |
| class | neforce::atomic_semaphore< LeastMaxValue > |
| 原子信号量类模板 更多... | |
| class | neforce::semaphore |
| 系统信号量类 更多... | |
类型定义 | |
| using | neforce::binary_semaphore = atomic_semaphore<1> |
| 二元信号量 | |
信号量支持
此文件提供了信号量的实现,用于控制对共享资源的并发访问。 包含两种信号量类型:
在文件 semaphore.hpp 中定义.