Track progress of loading plots.

This commit is contained in:
Bartosz Taudul 2018-08-04 15:17:37 +02:00
parent 85fb87a2f0
commit 6ef2d2d9a3

View File

@ -627,8 +627,10 @@ Worker::Worker( FileRead& f, EventType::Type eventMask )
if( eventMask & EventType::Plots ) if( eventMask & EventType::Plots )
{ {
m_data.plots.reserve( sz ); m_data.plots.reserve( sz );
s_loadProgress.subTotal.store( sz, std::memory_order_relaxed );
for( uint64_t i=0; i<sz; i++ ) for( uint64_t i=0; i<sz; i++ )
{ {
s_loadProgress.subProgress.store( i, std::memory_order_relaxed );
auto pd = m_slab.AllocInit<PlotData>(); auto pd = m_slab.AllocInit<PlotData>();
pd->type = PlotType::User; pd->type = PlotType::User;
f.Read( pd->name ); f.Read( pd->name );