mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-08 16:11:18 +00:00
Better multithreading support: remove mg_socketpair, add mg_mkpipe() and mg_rmpipe()
This commit is contained in:
1 parent
86f43cd8d6
commit
b7ce8213d7
12 files changed
+309
-265
No files matched your search
+1
-1
@@ -57,7 +57,7 @@ size_t mg_iobuf_append(struct mg_iobuf *io, const void *buf, size_t len,
|
||||
}
|
||||
|
||||
size_t mg_iobuf_delete(struct mg_iobuf *io, size_t len) {
|
||||
if (len > io->len) len = 0;
|
||||
if (len > io->len) len = io->len;
|
||||
memmove(io->buf, io->buf + len, io->len - len);
|
||||
zeromem(io->buf + io->len - len, len);
|
||||
io->len -= len;
|
||||
|
||||
Reference in new issue
Block a user