Skip to content

Commit 36c35ed

Browse files
author
Eduardo Manuel Velarde Polar
committed
Test only UnsafeQueueNativeOverlapped
1 parent 5d581e8 commit 36c35ed

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/tests/tracing/eventlistener/EventListenerThreadPool.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ internal sealed class RuntimeEventListener : EventListener
1717
public volatile int TPIODequeue = 0;
1818

1919
public int TPIOPackGoal = 0;
20-
public int TPIOEnqueueGoal = 1;
21-
public int TPIODequeueGoal = 1;
20+
public int TPIOEnqueueGoal = 0;
21+
public int TPIODequeueGoal = 0;
2222

2323
public ManualResetEvent TPWaitWorkerThreadEvent = new ManualResetEvent(false);
2424
public ManualResetEvent TPWaitIOPackEvent = new ManualResetEvent(false);
@@ -91,12 +91,13 @@ public static int TestEntryPoint()
9191
}
9292
}
9393

94+
/*
9495
// RegisterWaitForSingleObject should fire an IOEnqueue and IODequeue event
9596
ManualResetEvent manualResetEvent = new ManualResetEvent(false);
9697
WaitOrTimerCallback work = (x, timedOut) => { int y = (int)x; };
9798
ThreadPool.RegisterWaitForSingleObject(manualResetEvent, work, 1, 100, true);
9899
manualResetEvent.Set();
99-
100+
*/
100101
ManualResetEvent[] waitEvents = new ManualResetEvent[] {listener.TPWaitIOPackEvent,
101102
listener.TPWaitIOEnqueueEvent,
102103
listener.TPWaitIODequeueEvent};

0 commit comments

Comments
 (0)