diff options
| author | Alexander Gavrilov | 2012-08-23 19:51:55 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-08-23 19:51:55 +0400 |
| commit | b12b9fa91e3be0d4d157f144f4b20202cdb72917 (patch) | |
| tree | 23ee4c6c4bc8d6844823152769f562f380f33728 /library/Core.cpp | |
| parent | c6c5ad56c9b4421e1bf8a5bc2f38323734a9d2eb (diff) | |
| download | dfhack-b12b9fa91e3be0d4d157f144f4b20202cdb72917.tar.gz dfhack-b12b9fa91e3be0d4d157f144f4b20202cdb72917.tar.bz2 dfhack-b12b9fa91e3be0d4d157f144f4b20202cdb72917.tar.xz | |
Suspend DF around loading and unloading plugins.
This is necessary to improve safety of vtable interposing.
Diffstat (limited to 'library/Core.cpp')
| -rw-r--r-- | library/Core.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/Core.cpp b/library/Core.cpp index 71c92afe..a61fef4e 100644 --- a/library/Core.cpp +++ b/library/Core.cpp @@ -1225,6 +1225,7 @@ int Core::Shutdown ( void ) if(errorstate) return true; errorstate = 1; + CoreSuspendClaimer suspend; if(plug_mgr) { delete plug_mgr; |
