Merge pull request #2199 from cesanta/docinsource

remove stalled doc in header
This commit is contained in:
Sergio R. Caprile 2023-05-16 18:40:41 -03:00 committed by GitHub
commit 7e7d0bb354
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;