mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 14:50:05 +00:00
Avoid uncommon race condition with computing a sweep during radar product view destruction
This commit is contained in:
parent
f56d7f14bf
commit
bb2d3a92ad
8 changed files with 37 additions and 7 deletions
|
|
@ -30,7 +30,9 @@ public:
|
|||
latitude_ {}, longitude_ {}, range_ {}, vcp_ {}, sweepTime_ {}
|
||||
{
|
||||
}
|
||||
~Level3RasterViewImpl() = default;
|
||||
~Level3RasterViewImpl() { threadPool_.join(); };
|
||||
|
||||
boost::asio::thread_pool threadPool_ {1u};
|
||||
|
||||
std::vector<float> vertices_;
|
||||
std::vector<uint8_t> dataMoments8_;
|
||||
|
|
@ -56,6 +58,11 @@ Level3RasterView::~Level3RasterView()
|
|||
std::unique_lock sweepLock {sweep_mutex()};
|
||||
}
|
||||
|
||||
boost::asio::thread_pool& Level3RasterView::thread_pool()
|
||||
{
|
||||
return p->threadPool_;
|
||||
}
|
||||
|
||||
float Level3RasterView::range() const
|
||||
{
|
||||
return p->range_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue