From 3d85000f13842af0284f4bb08ce586bf529b7a76 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Thu, 17 Apr 2014 16:39:41 -0700 Subject: [PATCH] Reduce the iterations in the iothread test to something more reasonable. Remove an unnecessary lock. --- fish_tests.cpp | 2 +- iothread.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/fish_tests.cpp b/fish_tests.cpp index d66a319f2..382abb39c 100644 --- a/fish_tests.cpp +++ b/fish_tests.cpp @@ -494,7 +494,7 @@ static void test_iothread(void) { say(L"Testing iothreads"); int *int_ptr = new int(0); - int iterations = 5000000; + int iterations = 50000; int max_achieved_thread_count = 0; double start = timef(); for (int i=0; i < iterations; i++) diff --git a/iothread.cpp b/iothread.cpp index a97007c46..00c307212 100644 --- a/iothread.cpp +++ b/iothread.cpp @@ -303,7 +303,6 @@ static void iothread_service_main_thread_requests(void) { // Perform each of the functions // Note we are NOT responsible for deleting these. They are stack allocated in their respective threads! - scoped_lock cond_lock(s_main_thread_performer_lock); while (! request_queue.empty()) { MainThreadRequest_t *req = request_queue.front();