<div dir="ltr">We still try to avoid using pools from different threads.  When its done its only done on a second hand context, eg.. uuid_setvar  Since Sessions have their own pool, and uuid_setvar is used from another thread, the only solution is to use mutexes.  That is why the patch we added is designed to activate mutex mode only when needed which we do need in FreeSWITCH.  You could go on to ask him in your thread if you wish why they have not commented on our patch that has been submitted for several years now to get the few patches we have into main APR so we don&#39;t have to use our own.  We have tried to explain it to them a few times and usually the answer is: meh!  and its dismissed.<div><br></div><div>I would argue that FreeSWITCH gets its fair share of heavy use and has a reputation for scalability.  This is all done with mutexed pools so its clearly not the end of the world to do it.<br><div><br></div><div>The final result is we are forced to use our own copy to make sure we get the functionality we need.</div><div><br></div><div><br></div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 17, 2017 at 10:12 AM, Michael Jerris <span dir="ltr">&lt;<a href="mailto:mike@jerris.com" target="_blank">mike@jerris.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">We have no plans to make major changes in this space.<div><br><div><blockquote type="cite"><div><div class="h5"><div>On Jan 17, 2017, at 8:10 AM, Sergey Safarov &lt;<a href="mailto:s.safarov@gmail.com" target="_blank">s.safarov@gmail.com</a>&gt; wrote:</div><br class="m_6551956617697746480Apple-interchange-newline"></div></div><div><div><div class="h5"><div dir="ltr">This questions for FS core developers.<div>I found that FreeSwitch apr libs have apr_pool_mutex_set that not exists in APR master.</div><div>I found <a href="https://freeswitch.org/stash/projects/FS/repos/freeswitch/commits/ffb1cb4f690473af696fe1fe3879790fe49acecb" target="_blank">commit</a> where this function is introduced.</div><div>Purpose of this commit is resolve concurrency access from different threads to same memory pool.</div><div><br></div><div>I <a href="http://mail-archives.apache.org/mod_mbox/apr-dev/201701.mbox/%3CCAHtxdDfDwmoACnYn04FTWWgtpK8giJjsgSgg5VvuSN%2Bph4G%3DBw%40mail.gmail.com%3E" target="_blank">asked</a> APR community why not used mutex and got <a href="http://mail-archives.apache.org/mod_mbox/apr-dev/201701.mbox/%3CCACsi2539CFJusRo0wmReEEdrdG5ppJsJb-C9aD-g7K6tFos%2BOA%40mail.gmail.com%3E" target="_blank">responce from William A Rowe</a></div><div><br></div><div>My questions</div><div>Does core team developers planning rewrite memory pool operation to remove shared access to same pool from different threads? Create own pool for each thread.<br></div><div><br></div><div>Sergey</div></div></div></div>
______________________________<wbr>______________________________<wbr>_____________<br>Professional FreeSWITCH Consulting Services: <br><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br><a href="http://www.freeswitchsolutions.com" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br><br>Official FreeSWITCH Sites<br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br><a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.<wbr>org</a><br><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br><br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></div></blockquote></div><br></div></div><br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Anthony Minessale II       ♬ @anthmfs  ♬ @FreeSWITCH  ♬<div><br><div>☞ <a href="http://freeswitch.org/" target="_blank">http://freeswitch.org/</a>  ☞ <a href="http://cluecon.com/" target="_blank">http://cluecon.com/</a>  ☞ <a href="http://twitter.com/FreeSWITCH" target="_blank">http://twitter.com/FreeSWITCH</a></div><div><div>☞ <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch ☞ <u><a href="http://freeswitch.org/g+" target="_blank">http://freeswitch.org/g+</a></u><br><br></div><div>ClueCon Weekly Development Call <br></div><div>☎ <a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a>  ☎ +19193869900 </div><div><br></div></div></div><div><a href="https://www.youtube.com/watch?v=9XXgW34t40s" style="color:rgb(17,85,204);font-size:12.8000001907349px" target="_blank">https://www.youtube.com/watch?v=9XXgW34t40s</a></div><div><a href="https://www.youtube.com/watch?v=NLaDpGQuZDA" target="_blank">https://www.youtube.com/watch?v=NLaDpGQuZDA</a><br></div></div></div></div></div></div></div>
</div>