File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ void CheckResultProducerComponent::Stop()
76
76
*/
77
77
template <class C , class M >
78
78
inline
79
- CheckResultProducerComponent:: State CheckResultProducerComponent::ModifyState (const C& cond, const M& mod)
79
+ State CheckResultProducerComponent::ModifyState (const C& cond, const M& mod)
80
80
{
81
81
auto expected (m_State.load ());
82
82
decltype (expected) desired;
@@ -95,7 +95,7 @@ CheckResultProducerComponent::State CheckResultProducerComponent::ModifyState(co
95
95
96
96
template <class M >
97
97
inline
98
- CheckResultProducerComponent:: State CheckResultProducerComponent::ModifyState (const M& mod)
98
+ State CheckResultProducerComponent::ModifyState (const M& mod)
99
99
{
100
100
return ModifyState ([](auto ) { return true ; }, mod);
101
101
}
Original file line number Diff line number Diff line change @@ -42,6 +42,12 @@ class UnitTestCRP : public CheckResultProducer
42
42
void unlock_shared () noexcept override ;
43
43
};
44
44
45
+ struct State
46
+ {
47
+ uint32_t InstanceIsActive = 0 ;
48
+ uint32_t ProcessingCheckResults = 0 ;
49
+ };
50
+
45
51
class CheckResultProducerComponent : public CheckResultProducer
46
52
{
47
53
public:
@@ -53,12 +59,6 @@ class CheckResultProducerComponent : public CheckResultProducer
53
59
void Stop ();
54
60
55
61
private:
56
- struct State
57
- {
58
- uint32_t InstanceIsActive = 0 ;
59
- uint32_t ProcessingCheckResults = 0 ;
60
- };
61
-
62
62
Atomic<State> m_State {State{}};
63
63
std::mutex m_Mutex;
64
64
std::condition_variable m_CV;
You can’t perform that action at this time.
0 commit comments