-
-
Save secunit64/8195709 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #[no_uv]; | |
| extern mod green; | |
| extern mod rustuv; // pull in I/O support | |
| #[start] | |
| fn start(argc: int, argv: **u8) -> int { | |
| do green::start(argc, argv) { | |
| main(); | |
| } | |
| } | |
| // This is running in a green thread | |
| fn main() {} |
This file contains hidden or 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
| #[no_uv]; | |
| extern mod native; | |
| #[start] | |
| fn start(argc: int, argv: **u8) -> int { | |
| do native::start(argc, argv) { | |
| main(); | |
| } | |
| } | |
| // this is running in a native OS thread | |
| fn main() {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment