<p dir="auto">This attempts to minimise the time that the lock is help when taking a job from the queue and scales the queue size with the number of threads to try and ensure it stays full enough to keep all threads busy.</p>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/openstreetmap/mod_tile/pull/335'>https://github.com/openstreetmap/mod_tile/pull/335</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/mod_tile/pull/335/commits/a183685b7a1feeddd39211d789ea1a775c63efdb" class="commit-link">a183685</a> Minimise the time we hold the lock when dequeuing a request</li>
<li><a href="https://github.com/openstreetmap/mod_tile/pull/335/commits/b2a3a0a08ac3cfb78be14a4a6bde0a3482539321" class="commit-link">b2a3a0a</a> Add missing static to global variables</li>
<li><a href="https://github.com/openstreetmap/mod_tile/pull/335/commits/1d57ee13595e12d74d0304a3ac1d0ec2c7f8f7f2" class="commit-link">1d57ee1</a> Scale the queue length with the number of threads</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/mod_tile/pull/335/files">1 file</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/mod_tile/pull/335/files#diff-b3e4a2a669e5da7f2783c10ad61b80987dec211cbdfa2bd36163a728cc461f23">src/render_submit_queue.c</a>
(48)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/mod_tile/pull/335.patch'>https://github.com/openstreetmap/mod_tile/pull/335.patch</a></li>
<li><a href='https://github.com/openstreetmap/mod_tile/pull/335.diff'>https://github.com/openstreetmap/mod_tile/pull/335.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/mod_tile/pull/335">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353XLOIOTHV7H557ZSC3X3PUNLANCNFSM6AAAAAA5BCH6QY">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AA6353RRQZMAXOQIKDY3UODX3PUNLA5CNFSM6AAAAAA5BCH6Q2WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHHDH7MBI.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/mod_tile/pull/335</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/mod_tile/pull/335",
"url": "https://github.com/openstreetmap/mod_tile/pull/335",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>