remove stalled doc in header

This commit is contained in:
Sergio R. Caprile 2023-05-16 18:08:48 -03:00
parent 926959ab47
commit e468b90442
2 changed files with 2 additions and 26 deletions

View File

@ -833,19 +833,7 @@ char *mg_remove_double_dots(char *s);
// Single producer, single consumer non-blocking queue
//
// Producer:
// char *buf;
// while (mg_queue_book(q, &buf) < len) WAIT(); // Wait for space
// memcpy(buf, my_data, len); // Copy data to the queue
// mg_queue_add(q, len);
//
// Consumer:
// char *buf;
// while ((len = mg_queue_get(q, &buf)) == 0) WAIT();
// mg_hexdump(buf, len); // Handle message
// mg_queue_del(q, len);
//
struct mg_queue {
char *buf;
size_t size;

View File

@ -3,19 +3,7 @@
#include "arch.h" // For size_t
// Single producer, single consumer non-blocking queue
//
// Producer:
// char *buf;
// while (mg_queue_book(q, &buf) < len) WAIT(); // Wait for space
// memcpy(buf, my_data, len); // Copy data to the queue
// mg_queue_add(q, len);
//
// Consumer:
// char *buf;
// while ((len = mg_queue_get(q, &buf)) == 0) WAIT();
// mg_hexdump(buf, len); // Handle message
// mg_queue_del(q, len);
//
struct mg_queue {
char *buf;
size_t size;