summaryrefslogtreecommitdiffstats
path: root/test/queue_test.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-02-16 19:13:07 +0000
committerDavid Robillard <d@drobilla.net>2011-02-16 19:13:07 +0000
commita06317b5de9a23e4c12ad2f918be0f24c1f67149 (patch)
tree4e56df0fac3241c2513907d832aae163f9bda543 /test/queue_test.cpp
parent26bf74b210f27ea6076ff262757eb813955472c2 (diff)
downloadraul-a06317b5de9a23e4c12ad2f918be0f24c1f67149.tar.gz
raul-a06317b5de9a23e4c12ad2f918be0f24c1f67149.tar.bz2
raul-a06317b5de9a23e4c12ad2f918be0f24c1f67149.zip
Tidy up Raul test suite.
git-svn-id: http://svn.drobilla.net/lad/trunk/raul@2961 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'test/queue_test.cpp')
-rw-r--r--test/queue_test.cpp11
1 files changed, 3 insertions, 8 deletions
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<WriteAction> 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) {