summaryrefslogtreecommitdiff
path: root/library/Core.cpp
diff options
context:
space:
mode:
authorAlexander Gavrilov2012-08-23 19:51:55 +0400
committerAlexander Gavrilov2012-08-23 19:51:55 +0400
commitb12b9fa91e3be0d4d157f144f4b20202cdb72917 (patch)
tree23ee4c6c4bc8d6844823152769f562f380f33728 /library/Core.cpp
parentc6c5ad56c9b4421e1bf8a5bc2f38323734a9d2eb (diff)
downloaddfhack-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.cpp1
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;