MCPcopy Create free account
hub / github.com/cameron314/concurrentqueue / Semaphore

Method Semaphore

lightweightsemaphore.h:87–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85
86public:
87 Semaphore(int initialCount = 0)
88 {
89 assert(initialCount >= 0);
90 const long maxLong = 0x7fffffff;
91 m_hSema = CreateSemaphoreW(nullptr, initialCount, maxLong, nullptr);
92 assert(m_hSema);
93 }
94
95 ~Semaphore()
96 {

Callers

nothing calls this directly

Calls 1

assertClass · 0.85

Tested by

no test coverage detected