Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ReleaseCore()

void System.Threading.LowLevelLifoSemaphore.ReleaseCore ( int count)
inline

Definition at line 343 of file LowLevelLifoSemaphore.cs.

344 {
345 for (int i = 0; i < count; i++)
346 {
348 {
349 int lastPInvokeError = Marshal.GetLastPInvokeError();
350 OutOfMemoryException ex = new OutOfMemoryException();
351 ex.HResult = lastPInvokeError;
352 throw ex;
353 }
354 }
355 }
static bool PostQueuedCompletionStatus(IntPtr CompletionPort, int dwNumberOfBytesTransferred, UIntPtr CompletionKey, IntPtr lpOverlapped)

References System.Threading.LowLevelLifoSemaphore._completionPort, System.count, System.Runtime.InteropServices.Marshal.GetLastPInvokeError(), Interop.Kernel32.PostQueuedCompletionStatus(), System.IntPtr.Zero, and System.UIntPtr.Zero.

Referenced by System.Threading.LowLevelLifoSemaphore.Release().