Skip to content

Verify TickEventLoop code is correct #27

Description

@cmfcmf

Carefully review what each function does in our TickEventLoop implementation and if we correctly set the more variable:

node/src/node.cc

Lines 4802 to 4818 in 2fae0db

inline static bool TickEventLoop(Environment & env) {
bool more;
uv_run(env.event_loop(), UV_RUN_ONCE);
v8_platform.DrainVMTasks();
more = uv_loop_alive(env.event_loop());
if (more)
return more;
EmitBeforeExit(&env);
// Emit `beforeExit` if the loop became alive either after emitting
// event, or after running some callbacks.
more = uv_loop_alive(env.event_loop());
return more;
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions