| 1173 | // class CAssureScriptsForThread : control creation/destruction of CScriptsOfThread |
| 1174 | |
| 1175 | CAssureScriptsForThread::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 | } |
| 1187 | CAssureScriptsForThread::~CAssureScriptsForThread() |
| 1188 | { |
| 1189 | CScriptsOfThread * scripts = CAllThreadsScripts::GetActiveSetNoAssert(); |
nothing calls this directly
no test coverage detected