Skip to content

Commit 6e3b667

Browse files
committed
Fix insufficient reference
1 parent 2520fcf commit 6e3b667

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/autowiring/test/ThreadPoolTest.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ class ThreadPoolTest:
1717
{
1818
public:
1919
ThreadPoolTest(void) {
20-
pool->SuggestThreadPoolSize(2);
21-
token = pool->Start();
20+
m_pool->SuggestThreadPoolSize(2);
21+
token = m_pool->Start();
2222
}
2323

2424
void TearDown(void) {
2525
token.reset();
2626
}
2727

28-
std::shared_ptr<T> pool = std::make_shared<T>();
28+
std::shared_ptr<T> m_pool = std::make_shared<T>();
2929
std::shared_ptr<void> token;
3030
};
3131

@@ -40,7 +40,7 @@ TYPED_TEST_P(ThreadPoolTest, PoolOverload) {
4040
auto p = std::make_shared<std::promise<void>>();
4141

4242
for (size_t i = cap; i--;)
43-
*pool += [=] {
43+
*this->m_pool += [=] {
4444
if (!--*ctr)
4545
p->set_value();
4646
};

0 commit comments

Comments
 (0)