NAME
A static function of omni::application
omni::application::run
A static function of omni::application
#include <omni/application.hpp>int omni::application::run(const int& argc, const char** argv, const omni::sync::thread_start& start_func, bool exit_with_work_thread)
PARAMETERS
top
[name] - [optional] Each parameter should be marked with this. [name] - [optional] Each template parameter should be marked with this.
top
EXAMPLE
Visit the examples page for more.
top
#include <omni/application> void app_exit() { std::cout << "Application exiting" << std::endl; } void app_run() { std::cout << "Leaving, waiting for CTRL+C" << std::endl; } int main(int argc, const char* argv[]) { omni::application::exit_handler::attach(&app_exit); return omni::application::run(&app_run); }
top