private ReleaseSemaphore ( [ hSemaphore, [ lReleaseCount, [ lpPreviousCount ) : bool | ||
hSemaphore | [ | |
lReleaseCount | [ | |
lpPreviousCount | [ | |
Результат | bool |
/* * // * public Semaphore(int initialCount, int maxCount, string name) : base() { * lock (this) { * // * Handle = UnsafeNclNativeMethods.CreateSemaphore(IntPtr.Zero, initialCount, maxCount, name); * } * } */ internal bool ReleaseSemaphore() { #if DEBUG int previousCount; bool success = UnsafeNclNativeMethods.ReleaseSemaphore(Handle, 1, out previousCount); GlobalLog.Print("ReleaseSemaphore#" + ValidationHelper.HashString(this) + " success:" + success + " previousCount:" + previousCount.ToString()); return(success); #else return(UnsafeNclNativeMethods.ReleaseSemaphore(Handle, 1, IntPtr.Zero)); #endif }
internal bool ReleaseSemaphore() { return(UnsafeNclNativeMethods.ReleaseSemaphore(this.Handle, 1, IntPtr.Zero)); }