aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/internal.h')
-rw-r--r--src/microhttpd/internal.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h
index 5fb3da3d..3b044984 100644
--- a/src/microhttpd/internal.h
+++ b/src/microhttpd/internal.h
@@ -1302,6 +1302,16 @@ struct MHD_Daemon
1302 void *default_handler_cls; 1302 void *default_handler_cls;
1303 1303
1304 /** 1304 /**
1305 * Head of doubly-linked list of new, externally added connections.
1306 */
1307 struct MHD_Connection *new_connections_head;
1308
1309 /**
1310 * Tail of doubly-linked list of new, externally added connections.
1311 */
1312 struct MHD_Connection *new_connections_tail;
1313
1314 /**
1305 * Head of doubly-linked list of our current, active connections. 1315 * Head of doubly-linked list of our current, active connections.
1306 */ 1316 */
1307 struct MHD_Connection *connections_head; 1317 struct MHD_Connection *connections_head;
@@ -1516,6 +1526,11 @@ struct MHD_Daemon
1516 * "manual_timeout" DLLs. 1526 * "manual_timeout" DLLs.
1517 */ 1527 */
1518 MHD_mutex_ cleanup_connection_mutex; 1528 MHD_mutex_ cleanup_connection_mutex;
1529
1530 /**
1531 * Mutex for any access to the "new connections" DL-list.
1532 */
1533 MHD_mutex_ new_connections_mutex;
1519#endif 1534#endif
1520 1535
1521 /** 1536 /**
@@ -1601,6 +1616,12 @@ struct MHD_Daemon
1601 volatile bool resuming; 1616 volatile bool resuming;
1602 1617
1603 /** 1618 /**
1619 * Indicate that new connections in @e new_connections_head list
1620 * need to be processed.
1621 */
1622 volatile bool have_new;
1623
1624 /**
1604 * 'True' if some data is already waiting to be processed. 1625 * 'True' if some data is already waiting to be processed.
1605 * If set to 'true' - zero timeout for select()/poll*() 1626 * If set to 'true' - zero timeout for select()/poll*()
1606 * is used. 1627 * is used.