Skip to content
Discussion options

You must be logged in to vote

整个操作系统调用的入口位于OnNativeIOCompleted

[UnmanagedCallersOnly]
private static unsafe void OnNativeIOCompleted(IntPtr instance, IntPtr context, IntPtr overlappedPtr, uint ioResult, nuint numberOfBytesTransferred, IntPtr ioPtr)
{
var wrapper = ThreadPoolCallbackWrapper.Enter();
Win32ThreadPoolNativeOverlapped* overlapped = (Win32ThreadPoolNativeOverlapped*)overlappedPtr;
ThreadPoolBoundHandle boundHandle = overlapped->Data._boundHandle ?? throw new InvalidOperationException(SR.Argument_NativeOverlappedAlreadyFree);

Replies: 1 comment 31 replies

Comment options

You must be logged in to vote
31 replies
@ljzj2
Comment options

@huoyaoyuan
Comment options

@ljzj2
Comment options

@huoyaoyuan
Comment options

Answer selected by ljzj2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants