Skip to content

Commit ce0d035

Browse files
committed
TODO
1 parent d61600f commit ce0d035

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

lib/icinga/checkresult.hpp

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,16 @@ class CheckResultProducer : virtual public Object
3838
virtual void unlock_shared() noexcept = 0;
3939
};
4040

41+
class TestCheckResultProducer : public CheckResultProducer
42+
{
43+
public:
44+
bool try_lock_shared() noexcept override;
45+
void unlock_shared() noexcept override;
46+
};
47+
48+
// TODO: revert this before merging!
49+
typedef TestCheckResultProducer TodoCheckResultProducer;
50+
4151
/**
4252
* A check result.
4353
*
@@ -48,6 +58,10 @@ class CheckResult final : public ObjectImpl<CheckResult>
4858
public:
4959
DECLARE_OBJECT(CheckResult);
5060

61+
CheckResult() : CheckResult(new TodoCheckResultProducer())
62+
{
63+
}
64+
5165
CheckResult(CheckResultProducer::Ptr producer) : m_Producer(std::move(producer))
5266
{
5367
}
@@ -121,13 +135,6 @@ class DslCheckResultProducer : public CheckResultProducer
121135
static Ptr m_Instance;
122136
};
123137

124-
class TestCheckResultProducer : public CheckResultProducer
125-
{
126-
public:
127-
bool try_lock_shared() noexcept override;
128-
void unlock_shared() noexcept override;
129-
};
130-
131138
}
132139

133140
#endif /* CHECKRESULT_H */

0 commit comments

Comments
 (0)