///////////////////////////////////////////////////////
| 80 | |
| 81 | //////////////////////////////////////////////////////////// |
| 82 | void terminateMain(sf::priv::ActivityStates& states) |
| 83 | { |
| 84 | // Protect from concurrent access |
| 85 | const std::lock_guard lock(states.mutex); |
| 86 | |
| 87 | // The main thread has finished, we must explicitly ask the activity to finish |
| 88 | states.mainOver = true; |
| 89 | ANativeActivity_finish(states.activity); |
| 90 | } |
| 91 | |
| 92 | //////////////////////////////////////////////////////////// |
| 93 | void onStart(ANativeActivity* /* activity */) |