replace temporary variable with short name by atomic<>.load call

This commit is contained in:
Dennis Luxen 2015-01-22 13:47:31 +01:00
parent cfa83658dc
commit e67f82283f

View File

@ -236,12 +236,11 @@ int Extractor::Run(int argc, char *argv[])
TIMER_STOP(parsing); TIMER_STOP(parsing);
SimpleLogger().Write() << "Parsing finished after " << TIMER_SEC(parsing) << " seconds"; SimpleLogger().Write() << "Parsing finished after " << TIMER_SEC(parsing) << " seconds";
unsigned nn = number_of_nodes; SimpleLogger().Write() << "Raw input contains "
unsigned nw = number_of_ways; << number_of_nodes.load() << " nodes, "
unsigned nr = number_of_relations; << number_of_ways.load() << " ways, and "
unsigned no = number_of_others; << number_of_relations.load() << " relations, and "
SimpleLogger().Write() << "Raw input contains " << nn << " nodes, " << nw << " ways, and " << number_of_others.load() << " unknown entities";
<< nr << " relations, and " << no << " unknown entities";
extractor_callbacks.reset(); extractor_callbacks.reset();