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

Method Semaphore

atomicops.h:418–424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

416
417 public:
418 AE_NO_TSAN Semaphore(int initialCount = 0) : m_hSema()
419 {
420 assert(initialCount >= 0);
421 const long maxLong = 0x7fffffff;
422 m_hSema = CreateSemaphoreW(nullptr, initialCount, maxLong, nullptr);
423 assert(m_hSema);
424 }
425
426 AE_NO_TSAN ~Semaphore()
427 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected