From 8f0b0b284344dee93d6e4a86684b54da25315bc6 Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Thu, 7 Jan 2021 16:36:40 +0000 Subject: Skip waiting as the counters are changed in same thread. --- fastos/src/tests/thread_stats_test.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'fastos') diff --git a/fastos/src/tests/thread_stats_test.cpp b/fastos/src/tests/thread_stats_test.cpp index a9d304d411f..7753ad5686a 100644 --- a/fastos/src/tests/thread_stats_test.cpp +++ b/fastos/src/tests/thread_stats_test.cpp @@ -31,8 +31,6 @@ class Thread_Stats_Test : public ThreadTestBase job[0].ownThread = pool.NewThread(this, static_cast(&job[0])); - std::this_thread::sleep_for(1s); - inactiveThreads = pool.GetNumInactiveThreads(); Progress(inactiveThreads == 0, "Inactive threads = %d", inactiveThreads); activeThreads = pool.GetNumActiveThreads(); @@ -44,8 +42,6 @@ class Thread_Stats_Test : public ThreadTestBase job[1].ownThread = pool.NewThread(this, static_cast(&job[1])); - std::this_thread::sleep_for(1s); - inactiveThreads = pool.GetNumInactiveThreads(); Progress(inactiveThreads == 0, "Inactive threads = %d", inactiveThreads); activeThreads = pool.GetNumActiveThreads(); -- cgit v1.2.3