diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2021-01-07 16:36:40 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2021-01-07 16:36:40 +0000 |
commit | 8f0b0b284344dee93d6e4a86684b54da25315bc6 (patch) | |
tree | 39348051a8f7f26aeaf096c7be9908a50ef8100c /fastos | |
parent | 02da389f915eb4d3d7168e1ff69dabee63604e3d (diff) |
Skip waiting as the counters are changed in same thread.
Diffstat (limited to 'fastos')
-rw-r--r-- | fastos/src/tests/thread_stats_test.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
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<void *>(&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<void *>(&job[1])); - std::this_thread::sleep_for(1s); - inactiveThreads = pool.GetNumInactiveThreads(); Progress(inactiveThreads == 0, "Inactive threads = %d", inactiveThreads); activeThreads = pool.GetNumActiveThreads(); |