DotNetDupe 4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Loading...
Searching...
No Matches
Semaphore.cpp File Reference
#include "pch.h"
#include "System/Threading/Semaphore.h"
#include "System/Threading/SemaphoreFullException.h"
#include "System/Threading/WaitHandleCannotBeOpenedException.h"
#include "System/TimeoutException.h"
#include "System/UnauthorizedAccessException.h"
#include "System/Char.h"
#include "System/Utils/StringConvert.h"
#include "System/SmartPointer.h"
#include <chrono>
#include <mutex>
#include <condition_variable>
#include <windows.h>

Go to the source code of this file.

Namespaces

namespace  DotNetDupe
namespace  DotNetDupe::System
namespace  DotNetDupe::System::Threading

Functions

static HANDLE DotNetDupe::System::Threading::OpenOrCreateWin32Semaphore (const std::wstring &wsName, int initialCount, int maximumCount, bool openAlways, bool &bCreatedNew)
static int DotNetDupe::System::Threading::ReleaseSemaphoreCv (Semaphore::Impl *pImpl, int &count, int maxCount, int releaseCount)
static bool DotNetDupe::System::Threading::WaitForSemaphoreCv (Semaphore::Impl *pImpl, int &count, int msTimeout)

Variables

static bool DotNetDupe::System::Threading::s_semDummyCreatedNew = false