Function update

Synopsis

#include <src/uvw/loop.h>

void update() const noexcept

Description

Updates the event loop’s concept of now.

The current time is cached at the start of the event loop tick in order to reduce the number of time-related system calls.
You won’t normally need to call this function unless you have callbacks that block the event loop for longer periods of time, where longer is somewhat subjective but probably on the order of a millisecond or more.

Source

Lines 110-112 in src/uvw/loop.cpp. Line 266 in src/uvw/loop.h.

UVW_INLINE void Loop::update() const noexcept {
    return uv_update_time(loop.get());
}





Add Discussion as Guest

Log in