Thread (21 messages) 21 messages, 6 authors, 2018-07-26

Re: [PATCH v1 1/3] add unbounded Multi-Producer-Multi-Consumer queue

From: Stefan Beller <hidden>
Date: 2018-07-18 20:58:07

On Wed, Jul 18, 2018 at 1:45 PM Ben Peart [off-list ref] wrote:
Did you have any further considerations that are worth recording here?
(memory, performance, CPU execution, threading, would all come to mind)
Signed-off-by: Ben Peart <redacted>
quoted hunk ↗ jump to hunk
+/*
+ * Initializes a mpmcq structure.
+ */
I'd find the name mpmcq a bit troubling if I were just stumbling upon it
in the code without the knowledge of this review (and its abbreviation),
maybe just 'threadsafe_queue' ?
+extern void mpmcq_init(struct mpmcq *queue);
We prefer no extern keyword these days
c.f. Documentation/CodingGuidelines:
 - Variables and functions local to a given source file should be marked
   with "static". Variables that are visible to other source files
   must be declared with "extern" in header files. However, function
   declarations should not use "extern", as that is already the default.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help