what Win32 funcntion does WaitOneCore call internally?

32 views Asked by At

when I read the source code of WaitHandle https://source.dot.net/#System.Private.CoreLib/src/System/Threading/WaitHandle.CoreCLR.cs,1

public abstract partial class WaitHandle
{
    [MethodImpl(MethodImplOptions.InternalCall)]
    private static extern int WaitOneCore(IntPtr waitHandle, int millisecondsTimeout, bool useTrivialWaits);  // calls WaitForSingleObjectEx?

    // ...
}

I am curious what Win32 fucntion (I guess it is WaitForSingleObjectEx) does WaitOneCore called internally, but how can I verify it? I checked the source code on Microsoft offical Github repo, didn't find anything. What C++ repo (CLR is written by C++) do I need to check ?

0

There are 0 answers