<p></p>
<p><b>@joto</b> commented on this pull request.</p>
<hr>
<p>In <a href="https://github.com/openstreetmap/osm2pgsql/pull/1176#discussion_r428502378">src/osmdata.cpp</a>:</p>
<pre style='color:#555'>>
static osmid_t pop_id(pending_queue_t &queue, std::mutex &mutex)
{
osmid_t id = 0;
std::lock_guard<std::mutex> const lock{mutex};
if (!queue.empty()) {
- id = queue.top();
- queue.pop();
+ id = queue.back();
+ queue.pop_back();
</pre>
<p><code>stack::top()</code> calls the underlying containers <code>back()</code> function, and <code>pop()</code> calls <code>pop_back()</code>. So I believe we are doing exactly the same here.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/osm2pgsql/pull/1176#discussion_r428502378">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353S4ZCSRY3N4VHPF753RSTNAFANCNFSM4NFW5W5A">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AA6353STS7BTV6KAPDOI253RSTNAFA5CNFSM4NFW5W5KYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGODDFOFOA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/osm2pgsql/pull/1176#discussion_r428502378",
"url": "https://github.com/openstreetmap/osm2pgsql/pull/1176#discussion_r428502378",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>