Add flag to IPlugin::aboutToShutdown that allows asynchronous shutdown.

If a plugin requests asyncronous shutdown, the shutdown sequence does
not continue to deleting the plugins before it has sent a
asynchronousShutdownFinished signal. During that time an event loop
is running.
This commit is contained in:
con
2010-07-13 13:36:47 +02:00
parent adf2c1b0da
commit b3dbc4b4e4
29 changed files with 165 additions and 42 deletions

View File

@@ -959,12 +959,12 @@ bool PluginSpecPrivate::initializeExtensions()
\fn bool PluginSpecPrivate::stop()
\internal
*/
void PluginSpecPrivate::stop()
IPlugin::ShutdownFlag PluginSpecPrivate::stop()
{
if (!plugin)
return;
plugin->aboutToShutdown();
return IPlugin::SynchronousShutdown;
state = PluginSpec::Stopped;
return plugin->aboutToShutdown();
}
/*!