| 27 | } |
| 28 | |
| 29 | void ConfigCompilerContext::WriteObject(const Dictionary::Ptr& object) |
| 30 | { |
| 31 | if (!m_ObjectsFP) |
| 32 | return; |
| 33 | |
| 34 | String json = JsonEncode(object); |
| 35 | |
| 36 | { |
| 37 | std::unique_lock<std::mutex> lock(m_Mutex); |
| 38 | NetString::WriteStringToStream(*m_ObjectsFP, json); |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | void ConfigCompilerContext::CancelObjectsFile() |
| 43 | { |