From a06317b5de9a23e4c12ad2f918be0f24c1f67149 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 16 Feb 2011 19:13:07 +0000 Subject: Tidy up Raul test suite. git-svn-id: http://svn.drobilla.net/lad/trunk/raul@2961 a436a847-0d15-0410-975c-d299462d15a1 --- test/queue_test.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'test/queue_test.cpp') diff --git a/test/queue_test.cpp b/test/queue_test.cpp index 329ec60..5c2209b 100644 --- a/test/queue_test.cpp +++ b/test/queue_test.cpp @@ -12,9 +12,9 @@ using namespace std; using namespace Raul; -static const unsigned NUM_DATA = 10; -static const unsigned QUEUE_SIZE = 128; -static const unsigned NUM_WRITERS = 2; +static const unsigned NUM_DATA = 10; +static const unsigned QUEUE_SIZE = 128; +static const unsigned NUM_WRITERS = 2; static const unsigned PUSHES_PER_ITERATION = 3; // Data to read/write using actions pumped through the queue @@ -47,9 +47,6 @@ SRMWQueue queue(QUEUE_SIZE); class WriteThread : public Thread { protected: void _run() { - // Wait for everything to get ready - sleep(1); - while (true) { for (unsigned j=0; j < PUSHES_PER_ITERATION; ++j) { unsigned i = rand() % NUM_DATA; @@ -139,8 +136,6 @@ main() writers[i]->start(); } - sleep(1); - // Read unsigned count = 0; for (unsigned i = 0; i < 10000000; ++i) { -- cgit v1.2.1