summaryrefslogtreecommitdiffstats
path: root/o3d/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'o3d/plugin')
-rw-r--r--o3d/plugin/npapi_host_control/win/host_control.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/o3d/plugin/npapi_host_control/win/host_control.h b/o3d/plugin/npapi_host_control/win/host_control.h
index 0cb0075..31763e7 100644
--- a/o3d/plugin/npapi_host_control/win/host_control.h
+++ b/o3d/plugin/npapi_host_control/win/host_control.h
@@ -59,8 +59,10 @@
class NPPluginProxy;
// Class implementing an ActiveX control for containing NPAPI plugin-objects.
+// This needs to be CComMultiThreadModel because these objects are concurrently
+// AddRefed and Released from StreamOperation threads.
class ATL_NO_VTABLE CHostControl
- : public CComObjectRootEx<CComSingleThreadModel>,
+ : public CComObjectRootEx<CComMultiThreadModel>,
public CComCoClass<CHostControl, &CLSID_HostControl>,
public CComControl<CHostControl>,
// IMPORTANT IMPLEMENTATION NOTE: