blob: 00425339692d21ee2bd6ce4bbb6ec47ddba8faac [file] [log] [blame]
Brian Silverman14fd0fb2014-01-14 21:42:01 -08001#ifndef AOS_LINUX_CODE_INIT_H_
2#define AOS_LINUX_CODE_INIT_H_
brians343bc112013-02-10 01:53:46 +00003
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
Brian Silverman14fd0fb2014-01-14 21:42:01 -080021#endif // AOS_LINUX_CODE_INIT_H_