mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 21:55:03 +02:00
parent
98e5492a40
commit
ae23e456a6
@ -212,6 +212,8 @@ String ConfigWriter::EscapeIcingaString(const String& str)
|
|||||||
const std::vector<String>& ConfigWriter::GetKeywords(void)
|
const std::vector<String>& ConfigWriter::GetKeywords(void)
|
||||||
{
|
{
|
||||||
static std::vector<String> keywords;
|
static std::vector<String> keywords;
|
||||||
|
static boost::mutex mutex;
|
||||||
|
boost::mutex::scoped_lock lock(mutex);
|
||||||
|
|
||||||
if (keywords.empty()) {
|
if (keywords.empty()) {
|
||||||
keywords.push_back("object");
|
keywords.push_back("object");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user