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