sys\system\threading\semaphore.cs (5)
69SafeWaitHandle myHandle = SafeNativeMethods.CreateSemaphore(null, initialCount, maximumCount, name);
131myHandle = SafeNativeMethods.CreateSemaphore(secAttrs, initialCount, maximumCount, name);
136myHandle = SafeNativeMethods.CreateSemaphore(null, initialCount, maximumCount, name);
270SafeWaitHandle myHandle = SafeNativeMethods.OpenSemaphore((int) rights, false, name);
321if (!SafeNativeMethods.ReleaseSemaphore(SafeWaitHandle, releaseCount, out previousCount))