MCPcopy Create free account
hub / github.com/SFML/SFML / terminateMain

Function terminateMain

src/SFML/Main/MainAndroid.cpp:82–90  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

80
81////////////////////////////////////////////////////////////
82void 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////////////////////////////////////////////////////////////
93void onStart(ANativeActivity* /* activity */)

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected