blob: 2865b71d520827db92fc3822cc11ab8d6ea6383b [file] [log] [blame]
Ernesto Posse8a4f2962015-05-12 13:28:46 -04001// umlrtmainloop.cc
2
3/*******************************************************************************
4* Copyright (c) 2014-2015 Zeligsoft (2009) Limited and others.
5* All rights reserved. This program and the accompanying materials
6* are made available under the terms of the Eclipse Public License v1.0
7* which accompanies this distribution, and is available at
8* http://www.eclipse.org/legal/epl-v10.html
9*******************************************************************************/
10
11#include "umlrtmain.hh"
12
13// See umlrtmain.hh for documentation.
14
15// mainLoop - a method that can be overridden by the user to implement a main thread.
16//
17// return 'false' to skip waiting for controllers to run-to-completion and call targetShutdown() immediately.
18// return 'true' to cause application to wait for controllers to complete before calling targetShutdown().
19/*static*/ bool UMLRTMain::mainLoop()
20{
21 return true; // By default, we wait for controllers to run-to-completion.
22}