This repository has been archived by the owner on Nov 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 390
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update basics and idle timers section for v1
- Loading branch information
Showing
4 changed files
with
53 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
#include <uv.h> | ||
|
||
int main() { | ||
uv_loop_t *loop = uv_loop_new(); | ||
uv_loop_t *loop = malloc(sizeof(uv_loop_t)); | ||
uv_loop_init(loop); | ||
|
||
printf("Now quitting.\n"); | ||
uv_run(loop, UV_RUN_DEFAULT); | ||
|
||
uv_loop_close(loop); | ||
free(loop); | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters