blob: b35a3b80627a1513beb7e6a95412fecc24ce2b95 [file] [log] [blame]
brians343bc112013-02-10 01:53:46 +00001#ifndef AOS_ATOM_CODE_INIT_H_
2#define AOS_ATOM_CODE_INIT_H_
3
4namespace aos {
5
6// Does the non-realtime parts of the initialization process.
7void InitNRT();
8// Initializes everything, including the realtime stuff.
Brian Silvermanf3cfbd72013-10-28 16:26:09 -07009// relative_priority adjusts the priority of this process relative to all of the
10// other ones (positive for higher priority).
11void Init(int relative_priority = 0);
brians343bc112013-02-10 01:53:46 +000012// Same as InitNRT, except will remove an existing shared memory file and create
13// a new one.
14void InitCreate();
15// Cleans up (probably not going to get called very often because few things can
16// exit gracefully).
17void Cleanup();
18
19} // namespace aos
20
21#endif // AOS_ATOM_CODE_INIT_H_