By eatonphil - 12 hours ago
Showing first level comment(s)
saghul - 10 minutes ago
nosefrog - 6 hours ago
libuv v1.30 was release at on Jan 28, 2015. It is at v1.22.0.
tapirl - 9 hours ago
How does it handle the well known incompatibility between fork and threads?
ridiculous_fish - 10 hours ago
Much of the value in making a struct (and hence its size) public and supplying a pointer to the initializer is the potential to embed or avoid heap allocation of the thing altogether, and here in an example which would benefit from both the simplified code in addition to demonstrating the advantage, it's completely missed.
Fixed form:
int main() {
uv_loop_t loop;
uv_loop_init(&loop);
printf("Now quitting.\n");
uv_run(&loop, UV_RUN_DEFAULT);
uv_loop_close(&loop);
return 0;
}
[0] https://nikhilm.github.io/uvbook/basics.html#hello-worldnewnewpdro - 8 hours ago