mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 10:30:06 +00:00 
			
		
		
		
	Fix crash when changing products
This commit is contained in:
		
							parent
							
								
									1b49e317e4
								
							
						
					
					
						commit
						e80c4866a5
					
				
					 3 changed files with 17 additions and 5 deletions
				
			
		|  | @ -108,7 +108,11 @@ Level2ProductView::Level2ProductView( | ||||||
| { | { | ||||||
|    ConnectRadarProductManager(); |    ConnectRadarProductManager(); | ||||||
| } | } | ||||||
| Level2ProductView::~Level2ProductView() = default; | 
 | ||||||
|  | Level2ProductView::~Level2ProductView() | ||||||
|  | { | ||||||
|  |    std::unique_lock sweepLock {sweep_mutex()}; | ||||||
|  | } | ||||||
| 
 | 
 | ||||||
| void Level2ProductView::ConnectRadarProductManager() | void Level2ProductView::ConnectRadarProductManager() | ||||||
| { | { | ||||||
|  |  | ||||||
|  | @ -50,7 +50,11 @@ Level3RadialView::Level3RadialView( | ||||||
|     p(std::make_unique<Level3RadialViewImpl>()) |     p(std::make_unique<Level3RadialViewImpl>()) | ||||||
| { | { | ||||||
| } | } | ||||||
| Level3RadialView::~Level3RadialView() = default; | 
 | ||||||
|  | Level3RadialView::~Level3RadialView() | ||||||
|  | { | ||||||
|  |    std::unique_lock sweepLock {sweep_mutex()}; | ||||||
|  | } | ||||||
| 
 | 
 | ||||||
| float Level3RadialView::range() const | float Level3RadialView::range() const | ||||||
| { | { | ||||||
|  | @ -150,8 +154,8 @@ void Level3RadialView::ComputeSweep() | ||||||
|       return; |       return; | ||||||
|    } |    } | ||||||
| 
 | 
 | ||||||
|    // A message with radial data should either have a Digital Radial Data Array
 |    // A message with radial data should either have a Digital Radial Data
 | ||||||
|    // Packet, or a Radial Data Array Packet (TODO)
 |    // Array Packet, or a Radial Data Array Packet (TODO)
 | ||||||
|    std::shared_ptr<wsr88d::rpg::DigitalRadialDataArrayPacket> |    std::shared_ptr<wsr88d::rpg::DigitalRadialDataArrayPacket> | ||||||
|                                                   digitalDataPacket = nullptr; |                                                   digitalDataPacket = nullptr; | ||||||
|    std::shared_ptr<wsr88d::rpg::RadialDataPacket> radialDataPacket  = nullptr; |    std::shared_ptr<wsr88d::rpg::RadialDataPacket> radialDataPacket  = nullptr; | ||||||
|  |  | ||||||
|  | @ -50,7 +50,11 @@ Level3RasterView::Level3RasterView( | ||||||
|     p(std::make_unique<Level3RasterViewImpl>()) |     p(std::make_unique<Level3RasterViewImpl>()) | ||||||
| { | { | ||||||
| } | } | ||||||
| Level3RasterView::~Level3RasterView() = default; | 
 | ||||||
|  | Level3RasterView::~Level3RasterView() | ||||||
|  | { | ||||||
|  |    std::unique_lock sweepLock {sweep_mutex()}; | ||||||
|  | } | ||||||
| 
 | 
 | ||||||
| float Level3RasterView::range() const | float Level3RasterView::range() const | ||||||
| { | { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat