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

Function main

src/SFML/Main/MainAndroid.cpp:469–486  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

467{
468////////////////////////////////////////////////////////////
469void* main(ActivityStates* states)
470{
471 // Initialize the thread before giving the hand
472 initializeMain(*states);
473
474 sleep(seconds(0.5));
475 ::main(0, nullptr);
476
477 // Terminate properly the main thread and wait until it's done
478 terminateMain(*states);
479
480 {
481 const std::lock_guard lock(states->mutex);
482 states->terminated = true;
483 }
484
485 return nullptr;
486}
487} // namespace sf::priv
488
489

Callers 1

WinMainFunction · 0.70

Calls 3

initializeMainFunction · 0.85
sleepFunction · 0.85
terminateMainFunction · 0.85

Tested by

no test coverage detected