<p> Attention is currently required from: Sean Bright. </p>
<p>Jaco Kroon <strong>uploaded patch set #4</strong> to this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/15227">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">func_lock: fix multiple-channel-grant problems.<br><br>Under contention it becomes possible that multiple channels will be told<br>they successfully obtained the lock, which is a bug.  Please refer<br><br>ASTERISK-29217<br><br>This introduces a couple of changes.<br><br>1.  Replaces requesters ao2 container with simple counter (we don't<br>    really care who is waiting for the lock, only how many).  This is<br>    updated undex ->mutex to prevent memory access races.<br>2.  Correct semantics for ast_cond_timedwait() as described in<br>    pthread_cond_broadcast(3P) is used (multiple threads can be released<br>    on a single _signal()).<br>3.  Module unload races are taken care of and memory properly cleaned<br>    up.<br><br>Change-Id: I6f68b5ec82ff25b2909daf6e4d19ca864a463e29<br>Signed-off-by: Jaco Kroon <jaco@uls.co.za><br>---<br>M funcs/func_lock.c<br>1 file changed, 58 insertions(+), 109 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/27/15227/4</pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/15227">change 15227</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/asterisk/+/15227"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I6f68b5ec82ff25b2909daf6e4d19ca864a463e29 </div>
<div style="display:none"> Gerrit-Change-Number: 15227 </div>
<div style="display:none"> Gerrit-PatchSet: 4 </div>
<div style="display:none"> Gerrit-Owner: Jaco Kroon <jaco@uls.co.za> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-CC: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-CC: Sean Bright <sean.bright@gmail.com> </div>
<div style="display:none"> Gerrit-Attention: Sean Bright <sean.bright@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>