///////////////////////////////////////////////////////
| 467 | { |
| 468 | //////////////////////////////////////////////////////////// |
| 469 | void* 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 |
no test coverage detected