1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
mod exit;
mod rc;
mod thread;
pub mod primitives;
pub use self::exit::ExitCode;
pub use self::rc::{StrongRc, WeakRc};
pub use self::thread::{ThreadModel, Thread, GreenThread, Pthread};
use runtime::Runtime;
pub const RECURSION_LIMIT: usize = 256;
pub type Argv<'a> = &'a [&'a str];
pub type MainFn = Fn(&Runtime) -> i64;
pub type MainFnRef<'a> = &'a Fn(&Runtime) -> (i64);
#[derive(Clone)]
pub struct SharedMainFnRef<'a>(pub MainFnRef<'a>);
unsafe impl<'a> Sync for SharedMainFnRef<'a> {}
unsafe impl<'a> Send for SharedMainFnRef<'a> {}