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.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/test/queue_test.cpp b/test/queue_test.cpp
index 5c2209b..195f763 100644
--- a/test/queue_test.cpp
+++ b/test/queue_test.cpp
@@ -27,7 +27,6 @@ struct Record {
Record data[NUM_DATA];
-
// Actions pumped through the queue to manipulate data
struct WriteAction {
WriteAction(unsigned idx) : index(idx) {}
@@ -39,11 +38,9 @@ struct WriteAction {
unsigned index;
};
-
// The victim
SRMWQueue<WriteAction> queue(QUEUE_SIZE);
-
class WriteThread : public Thread {
protected:
void _run() {
@@ -67,7 +64,6 @@ protected:
}
};
-
// Returns 0 if all read count/write count pairs are equal,
// otherwise how far off total count was
unsigned
@@ -82,7 +78,6 @@ data_is_sane()
return ret;
}
-
void
dump_data()
{
@@ -96,7 +91,6 @@ dump_data()
}
}
-
int
main()
{
@@ -177,7 +171,6 @@ main()
if (leftovers > 0)
cout << "Processed " << leftovers << " leftovers." << endl;
-
//cout << "\n\n*********************************************\n\n";
cout << "Total processed: " << total_processed << endl;
@@ -186,7 +179,6 @@ main()
else
cout << "(Counter did NOT have to wrap)" << endl;
-
const unsigned diff = data_is_sane();
if (diff == 0) {
@@ -201,7 +193,6 @@ main()
return 0;
}
-
#if 0
int main()
{