summaryrefslogtreecommitdiffstats
path: root/test/queue_test.cpp
diff options
context:
space:
mode:
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) {