SJ timer API cleanup; added setInterval and clear*

Timers/intervals are now implemented on top of Mongoose.
Got rid of all the platform-specific code (yay!)

Added interval support and ability to clear previously added timeouts.

PUBLISHED_FROM=93866dd80b95b0fa6e137d87f86138330e720154
This commit is contained in:
Deomid Ryabkov authored and Marko Mikulicic committed 2016-03-17 10:43:20 +01:00
1 parent 3327e0e871
commit 8148b6d037
2 files changed
+22 -20

No files matched your search

+3
View File
@@ -1575,6 +1575,9 @@ void mg_close_conn(struct mg_connection *nc);
void mg_if_get_conn_addr(struct mg_connection *nc, int remote,
union socket_address *sa);
/* Associate a socket to a connection. */
void mg_sock_set(struct mg_connection *nc, sock_t sock);
#endif /* CS_MONGOOSE_SRC_NET_IF_H_ */
/*
* Copyright (c) 2014 Cesanta Software Limited