System.Net.UnsafeNclNativeMethods.CreateSemaphore C# (CSharp) Method

CreateSemaphore() private method

private CreateSemaphore ( [ lpSemaphoreAttributes, [ lInitialCount, [ lMaximumCount, [ lpName ) : IntPtr
lpSemaphoreAttributes [
lInitialCount [
lMaximumCount [
lpName [
return IntPtr
        internal static extern IntPtr CreateSemaphore([In] IntPtr lpSemaphoreAttributes, [In] int lInitialCount, [In] int lMaximumCount, [In] IntPtr lpName);

Usage Example

Example #1
0
 internal Semaphore(int initialCount, int maxCount)
 {
     lock (this)
     {
         this.Handle = UnsafeNclNativeMethods.CreateSemaphore(IntPtr.Zero, initialCount, maxCount, IntPtr.Zero);
     }
 }
All Usage Examples Of System.Net.UnsafeNclNativeMethods::CreateSemaphore