Skip to contentSkip to conversation

advsync: Fix the abstract description of the queuetorture.h

PATCH In review Chin En Lin 2 participants 2 messages Oct 21, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 advsync: Fix the abstract description of the queuetorture.h

The words should describe queuetorture.h instead of deqtorture.h. Also, add the parentheses to 'create_thread' in the comments of concurrent_pop.

---
 CodeSamples/advsync/queuetorture.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
CodeSamples/advsync/queuetorture.h +2 -2
index 29743ef5..c02d4736 100644
@@ -1,5 +1,5 @@
 /*
- * deqtorture.h: torture tests for double-ended queue.
+ * queuetorture.h: torture tests for simple queue.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -82,7 +82,7 @@ void *concurrent_push(void *arg)
  * Dequeue as specified by the q_test structure. This may be called
  * directly (in which case the number of elements to be popped must
  * be exactly that required and the specified goflag already set to
- * GOFLAG_START), or via create_thread.
+ * GOFLAG_START), or via create_thread().
  */
 void *concurrent_pop(void *arg)
 {
Signature · 1 line
2.25.1
#1 lore raw
Quoted 5 lines · Chin En Lin

The words should describe queuetorture.h instead of deqtorture.h. Also, add the parentheses to 'create_thread' in the comments of concurrent_pop.

Good catch! Queued and pushed, thank you.

Thanx, Paul

Quoted 27 lines
---
 CodeSamples/advsync/queuetorture.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
CodeSamples/advsync/queuetorture.h +2 -2
index 29743ef5..c02d4736 100644
@@ -1,5 +1,5 @@
 /*
- * deqtorture.h: torture tests for double-ended queue.
+ * queuetorture.h: torture tests for simple queue.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -82,7 +82,7 @@ void *concurrent_push(void *arg)
  * Dequeue as specified by the q_test structure. This may be called
  * directly (in which case the number of elements to be popped must
  * be exactly that required and the specified goflag already set to
- * GOFLAG_START), or via create_thread.
+ * GOFLAG_START), or via create_thread().
  */
 void *concurrent_pop(void *arg)
 {
Signature · 1 line
2.25.1