void middle_ram_t::iterate_ways(middle_t::pending_processor& pf) { //let the outputs enqueue everything they have the non slim middle //has nothing of its own to enqueue as it doesnt have pending anything pf.enqueue_ways(id_tracker::max()); //let the threads process the ways pf.process_ways(); }
void middle_pgsql_t::iterate_ways(middle_t::pending_processor& pf) { // Make sure we're out of copy mode */ pgsql_endCopy( way_table ); // enqueue the jobs osmid_t id; while(id_tracker::is_valid(id = ways_pending_tracker->pop_mark())) { pf.enqueue_ways(id); } // in case we had higher ones than the middle pf.enqueue_ways(id_tracker::max()); //let the threads work on them pf.process_ways(); }