Separate plugin unloading into an eviction step, which disconnects the plugin from Core.
Note: this also ensures that library action callbacks are balanced (i.e., we do not notify libraries are being dropped if they were never notified as being added).
This commit is contained in:
@@ -248,6 +248,7 @@ private:
|
||||
|
||||
PluginStatus m_status;
|
||||
bool m_WaitingToUnload;
|
||||
bool m_AddedLibraries;
|
||||
|
||||
// Statuses that are set during failure.
|
||||
bool m_SilentFailure;
|
||||
@@ -461,6 +462,8 @@ private:
|
||||
|
||||
bool ScheduleUnload(CPlugin *plugin);
|
||||
void UnloadPluginImpl(CPlugin *plugin);
|
||||
|
||||
void Purge(CPlugin *plugin);
|
||||
public:
|
||||
inline IdentityToken_t *GetIdentity()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user