src/liblsquic/lsquic_engine.c
/* Iterator for tickable connections (those on the Tickable Queue).  Before
 * a connection is returned, it is removed from the Advisory Tick Time queue
 * if necessary.
 */
Iterator for tickable connections (those on the Tickable Queue).  Before
a connection is returned, it is removed from the Advisory Tick Time queue
if necessary.
Iterator for tickable connections ( those on the Tickable Queue ) . Before a connection is returned it is removed from the Advisory Tick Time queue if necessary .
static lsquic_conn_t *
conn_iter_next_tickable (struct lsquic_engine *engine)
{
    lsquic_conn_t *conn;
    if (engine->flags & ENG_SERVER)
        while (1)
        {
            conn = lsquic_mh_pop(&engine->conns_tickable);
            if (conn && (conn->cn_flags & LSCONN_SKIP_ON_PROC))
                (void) engine_decref_conn(engine, conn, LSCONN_TICKABLE);
            else
                break;
        }
    else
        conn = lsquic_mh_pop(&engine->conns_tickable);
    if (conn)
        conn = engine_decref_conn(engine, conn, LSCONN_TICKABLE);
    if (conn && (conn->cn_flags & LSCONN_ATTQ))
    {
        lsquic_attq_remove(engine->attq, conn);
        conn = engine_decref_conn(engine, conn, LSCONN_ATTQ);
    }
    return conn;
}
static lsquic_conn_t * conn_iter_next_tickable ( struct lsquic_engine * engine ) { lsquic_conn_t * conn ; if ( engine -> flags & ENG_SERVER ) while ( 1 ) { conn = lsquic_mh_pop ( & engine -> conns_tickable ) ; if ( conn && ( conn -> cn_flags & LSCONN_SKIP_ON_PROC ) ) ( void ) engine_decref_conn ( engine , conn , LSCONN_TICKABLE ) ; else break ; } else conn = lsquic_mh_pop ( & engine -> conns_tickable ) ; if ( conn ) conn = engine_decref_conn ( engine , conn , LSCONN_TICKABLE ) ; if ( conn && ( conn -> cn_flags & LSCONN_ATTQ ) ) { lsquic_attq_remove ( engine -> attq , conn ) ; conn = engine_decref_conn ( engine , conn , LSCONN_ATTQ ) ; } return conn ; }
Iterator for tickable connections (those on the Tickable Queue).
Iterator for tickable connections ( those on the Tickable Queue ) .