CyberEngineMkIII
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
CYBWin32Semaphore.hpp
Go to the documentation of this file.
1 #pragma once
3 namespace CYB {
4  namespace Platform {
5  namespace System {
6  namespace Implementation {
8  class Semaphore {
9  protected:
10  Win32::CRITICAL_SECTION FCritSection;
11  Win32::CONDITION_VARIABLE FCondVar;
12  protected:
14  Semaphore() noexcept = default;
15 
21  void WakeAll(void) noexcept;
22 
28  void WakeOne(void) noexcept;
29  };
30  };
31  };
32  };
33 };
void WakeOne(void) noexcept
Wake one thread waiting on the condition variable.
Semaphore() noexcept=default
See Default Constructors and Destructor.
void WakeAll(void) noexcept
Wake all threads waiting on the condition variable.
Win32::CONDITION_VARIABLE FCondVar
The condition variable.
Win32::CRITICAL_SECTION FCritSection
The mutex.