Skip to content
Snippets Groups Projects
Commit 510e852f authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

ENH: new function to stop processing (WIP)

parent 3d8ddf16
No related branches found
No related tags found
1 merge request!34Stop button for graphic applications
......@@ -154,6 +154,9 @@ public:
*/
int ExecuteAndWriteOutput();
/** Request the application to stop its processing */
void Stop();
/* Get the internal application parameters
*
* WARNING: this method may disappear from the API */
......
......@@ -523,6 +523,14 @@ int Application::ExecuteAndWriteOutput()
return status;
}
void
Application::Stop()
{
// TODO : call AbortGenerateData on ProcessObjects (but no mutex)
// TODO : set an internal AbortExecute flag with mutex
std::cout << "Stop !" << std::endl;
}
/* Enable the use of an optional parameter. Returns the previous state */
void Application::EnableParameter(std::string paramKey)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment