Skip to content

Commit

Permalink
Test only UnsafeQueueNativeOverlapped
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduardo Manuel Velarde Polar committed Aug 14, 2024
1 parent 5d581e8 commit 1bb1357
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/tests/tracing/eventlistener/EventListenerThreadPool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ internal sealed class RuntimeEventListener : EventListener
public volatile int TPIODequeue = 0;

public int TPIOPackGoal = 0;
public int TPIOEnqueueGoal = 1;
public int TPIODequeueGoal = 1;
public int TPIOEnqueueGoal = 0;
public int TPIODequeueGoal = 0;

public ManualResetEvent TPWaitWorkerThreadEvent = new ManualResetEvent(false);
public ManualResetEvent TPWaitIOPackEvent = new ManualResetEvent(false);
Expand Down Expand Up @@ -91,6 +91,7 @@ public static int TestEntryPoint()
}
}

/*
// RegisterWaitForSingleObject should fire an IOEnqueue and IODequeue event
ManualResetEvent manualResetEvent = new ManualResetEvent(false);
WaitOrTimerCallback work = (x, timedOut) => { int y = (int)x; };
Expand All @@ -114,6 +115,7 @@ public static int TestEntryPoint()
}
}
*/
if (!(listener.TPIOPack >= listener.TPIOPackGoal &&
listener.TPIOEnqueue >= listener.TPIOEnqueueGoal &&
listener.TPIODequeue >= listener.TPIODequeueGoal))
Expand Down

0 comments on commit 1bb1357

Please sign in to comment.