MCPcopy Create free account
hub / github.com/WinMerge/winmerge / CAssureScriptsForThread

Method CAssureScriptsForThread

Src/Plugins.cpp:1175–1186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1173// class CAssureScriptsForThread : control creation/destruction of CScriptsOfThread
1174
1175CAssureScriptsForThread::CAssureScriptsForThread(IDispatch* pHostObject)
1176{
1177 CScriptsOfThread * scripts = CAllThreadsScripts::GetActiveSetNoAssert();
1178 if (scripts == nullptr)
1179 {
1180 scripts = new CScriptsOfThread;
1181 // insert the script in the repository
1182 CAllThreadsScripts::Add(scripts);
1183 scripts->SetHostObject(pHostObject);
1184 }
1185 scripts->Lock();
1186}
1187CAssureScriptsForThread::~CAssureScriptsForThread()
1188{
1189 CScriptsOfThread * scripts = CAllThreadsScripts::GetActiveSetNoAssert();

Callers

nothing calls this directly

Calls 2

SetHostObjectMethod · 0.80
LockMethod · 0.45

Tested by

no test coverage detected