mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
daemon_cleanup_upgraded_conns(): microoptimisation
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user