<div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px">> For future:</div><div style="font-family:arial,sans-serif;font-size:13px">> Are there any clear guidelines what feature set form C++11 is safe to use?</div>
<div style="font-family:arial,sans-serif;font-size:13px">> Or we shouldn't limit ourselves until someone starts screaming out laud?</div><div><br></div><div>I think the LLVM dev list had some guidelines on this in the last 2 or 3 months as they moved to a C++11 required stance.  That might be worth having a look at.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Mar 24, 2014 at 11:36 AM, Piotr Rak <span dir="ltr"><<a href="mailto:piotr.rak@gmail.com" target="_blank">piotr.rak@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div class="gmail_extra"><div class="gmail_quote">2014-03-24 17:58 GMT+01:00 Greg Clayton <span dir="ltr"><<a href="mailto:gclayton@apple.com" target="_blank">gclayton@apple.com</a>></span>:<div class="">
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Note that std::once can be used to enforce "run once" and we don't have to worry about each platform (like we would have to if we used pthread_once).<br>


<br>
Modified version submitted with:<br>
<br>
Author: gclayton<br>
Date: Mon Mar 24 11:50:33 2014<br>
New Revision: 204622<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=204622&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=204622&view=rev</a><br>
Log:<br>
Modified patch from Piotr Rak that makes GetSharedModuleList() more thread safe and also fixed a missed member initialization on the copy contractor and also makes the assignment operator safer.<br>
<br>
Modified:<br>
   lldb/trunk/source/Core/ModuleList.cpp<br>
<div><div><span style="color:rgb(34,34,34)"> </span></div></div></blockquote><div><br></div></div>Thanks, that's great we can use that, I have not seen any use of std::once, and that's why I was avoiding it.<div>

Like I avoided ranged version of for before I have noticed we already use it.</div><div>I've seen comments about lack of atomic for Windows in debug shared_ptr implementation, and also we wrap things like mutex, condition variable, etc...</div>

<div><br></div><div>For future:</div><div>Are there any clear guidelines what feature set form C++11 is safe to use?</div><div>Or we shouldn't limit ourselves until someone starts screaming out laud?</div><div><br></div>

<div class="gmail_extra">Cheers,</div><div class="gmail_extra">/Piotr</div><div> </div></div></div></div>
<br>_______________________________________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@cs.uiuc.edu">lldb-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><table cellspacing="0" cellpadding="0" style="color:rgb(136,136,136);font-family:'Times New Roman'"><tbody><tr style="color:rgb(85,85,85);font-family:sans-serif;font-size:small">
<td nowrap style="border-top-style:solid;border-top-color:rgb(213,15,37);border-top-width:2px">Todd Fiala |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(51,105,232);border-top-width:2px"> Software Engineer |</td>
<td nowrap style="border-top-style:solid;border-top-color:rgb(0,153,57);border-top-width:2px"> <a href="mailto:tfiala@google.com" style="color:rgb(17,85,204)" target="_blank"><span style="background-color:rgb(255,255,204);color:rgb(34,34,34);background-repeat:initial initial">tfiala@google.com</span></a> |</td>
<td nowrap style="border-top-style:solid;border-top-color:rgb(238,178,17);border-top-width:2px"><font color="#1155cc"> <a>650-943-3180</a></font></td></tr></tbody></table><br></div>
</div>