override join for isolated threadpool

pull/13/head
Jeff Becker 6 years ago
parent 62f41d3747
commit 33c5cf5a89
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -143,6 +143,18 @@ namespace llarp
#endif
}
void
IsolatedPool::Join()
{
Pool::Join();
if(m_isolated)
{
m_isolated->join();
delete m_isolated;
m_isolated = nullptr;
}
}
} // namespace thread
} // namespace llarp

@ -58,6 +58,9 @@ namespace llarp
void
Spawn(int workers, const char* name);
void
Join();
std::thread* m_isolated = nullptr;
int m_IsolatedWorkers = 0;
const char* m_IsolatedName = nullptr;

Loading…
Cancel
Save