daemon_cleanup_upgraded_conns(): microoptimisation

This commit is contained in:
Evgeny Grin (Karlson2k)
2025-04-01 06:05:53 +03:00
parent 0eb4392ebe
commit 6b3d439cea
+5 -1
View File
@@ -339,10 +339,14 @@ daemon_process_all_active_conns (struct MHD_Daemon *restrict d)
* @param d the daemon to process
*/
static MHD_FN_PAR_NONNULL_ALL_ void
daemon_cleanup_upgraded_conns (struct MHD_Daemon *restrict d)
daemon_cleanup_upgraded_conns (struct MHD_Daemon *d)
{
volatile struct MHD_Daemon *voltl_d = d;
mhd_assert (! mhd_D_HAS_WORKERS (d));
if (NULL == mhd_DLINKEDL_GET_FIRST (&(voltl_d->conns.upgr), upgr_cleanup))
return;
while (true)
{
struct MHD_Connection *c;