MCPcopy Create free account
hub / github.com/Icinga/icinga2 / WriteObject

Method WriteObject

lib/config/configcompilercontext.cpp:29–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29void 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
42void ConfigCompilerContext::CancelObjectsFile()
43{

Callers 1

CommitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected