mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-23 11:44:53 +00:00
Add buf,len params to mg_mgr_wakeup()
This commit is contained in:
1 parent
4cd830a0bf
commit
fe813ee247
9 files changed
+36
-24
No files matched your search
@@ -31,8 +31,8 @@ bool mg_send(struct mg_connection *c, const void *buf, size_t len) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
void mg_mgr_wakeup(struct mg_connection *c) {
|
||||
(void) c;
|
||||
void mg_mgr_wakeup(struct mg_connection *c, const void *buf, size_t len) {
|
||||
(void) c, (void) buf, (void) len;
|
||||
}
|
||||
|
||||
struct mg_connection *mg_mkpipe(struct mg_mgr *mgr, mg_event_handler_t fn,
|
||||
|
||||
+1
-1
@@ -1504,7 +1504,7 @@ static void test_pipe(void) {
|
||||
int i, done = 0;
|
||||
mg_mgr_init(&mgr);
|
||||
ASSERT((c = mg_mkpipe(&mgr, eh6, (void *) &done)) != NULL);
|
||||
mg_mgr_wakeup(c);
|
||||
mg_mgr_wakeup(c, "", 1);
|
||||
for (i = 0; i < 10 && done == 0; i++) mg_mgr_poll(&mgr, 1);
|
||||
ASSERT(done == 1);
|
||||
mg_mgr_free(&mgr);
|
||||
|
||||
Reference in new issue
Block a user