File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -109,9 +109,7 @@ struct FrozenCleanupCheck {
109
109
static std::atomic<uint64_t > nFrozen;
110
110
static std::condition_variable cv;
111
111
static std::mutex m;
112
- // Freezing can't be the default initialized behavior given how the queue
113
- // swaps in default initialized Checks.
114
- bool should_freeze {false };
112
+ bool should_freeze{true };
115
113
bool operator ()() const
116
114
{
117
115
return true ;
@@ -344,10 +342,6 @@ BOOST_AUTO_TEST_CASE(test_CheckQueue_FrozenCleanup)
344
342
std::thread t0 ([&]() {
345
343
CCheckQueueControl<FrozenCleanupCheck> control (queue.get ());
346
344
std::vector<FrozenCleanupCheck> vChecks (1 );
347
- // Freezing can't be the default initialized behavior given how the queue
348
- // swaps in default initialized Checks (otherwise freezing destructor
349
- // would get called twice).
350
- vChecks[0 ].should_freeze = true ;
351
345
control.Add (std::move (vChecks));
352
346
bool waitResult = control.Wait (); // Hangs here
353
347
assert (waitResult);
You can’t perform that action at this time.
0 commit comments