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 36c35ed
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 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,12 +91,13 @@ 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; };
ThreadPool.RegisterWaitForSingleObject(manualResetEvent, work, 1, 100, true);
manualResetEvent.Set();

*/
ManualResetEvent[] waitEvents = new ManualResetEvent[] {listener.TPWaitIOPackEvent,
listener.TPWaitIOEnqueueEvent,
listener.TPWaitIODequeueEvent};
Expand Down

0 comments on commit 36c35ed

Please sign in to comment.