Код: Выделить всё
#include
#include
int main(int argc, char ** argv)
{
std::binary_semaphore sem{0};
std::cout < /p>
out:
1Подробнее здесь: https://stackoverflow.com/questions/755 ... s-over-max
Код: Выделить всё
#include
#include
int main(int argc, char ** argv)
{
std::binary_semaphore sem{0};
std::cout < /p>
out:
1