@@ -28,19 +28,17 @@ int main(int argc, char** argv)
2828 auto participant = SilKit::CreateParticipant (participantConfiguration, participantName, registryUri);
2929 auto logger = participant->GetLogger ();
3030
31- // Create an autonomous lifecycle
31+ // Create an autonomous lifecycle
3232 auto * lifecycleService =
3333 participant->CreateLifecycleService ({SilKit::Services::Orchestration::OperationMode::Autonomous});
3434
3535
36- // Future / promise to control entrance of the main loop in the worker thread
36+ // Future / promise to control entrance of the main loop in the worker thread
3737 std::promise<void > startWorkPromise;
3838 auto startWorkFuture = startWorkPromise.get_future ();
3939
4040 // The worker thread is 'unleashed' in the starting handler...
41- lifecycleService->SetStartingHandler ([&startWorkPromise]() {
42- startWorkPromise.set_value ();
43- });
41+ lifecycleService->SetStartingHandler ([&startWorkPromise]() { startWorkPromise.set_value (); });
4442
4543 // Start the worker thread and wait for the go from the starting handler.
4644 auto workerThread = std::thread ([&startWorkFuture, lifecycleService, logger]() {
@@ -49,7 +47,7 @@ int main(int argc, char** argv)
4947 for (int i = 0 ; i < 10 ; ++i)
5048 {
5149 std::this_thread::sleep_for (1s);
52- logger->Info (" Simulation stop in " + std::to_string (10 - i));
50+ logger->Info (" Simulation stop in " + std::to_string (10 - i));
5351 };
5452
5553 logger->Info (" Stopping just me." );
@@ -66,7 +64,6 @@ int main(int argc, char** argv)
6664 {
6765 workerThread.join ();
6866 }
69-
7067 }
7168 catch (const std::exception& error)
7269 {
0 commit comments