<html><head></head><body><div style="color:#000; background-color:#fff; font-family:verdana, helvetica, sans-serif;font-size:24px"><div id="yui_3_16_0_ym19_1_1494063383603_38690"><br></div><div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" id="yui_3_16_0_ym19_1_1494063383603_38755" style="display: block;"> <div style="font-family: verdana, helvetica, sans-serif; font-size: 24px;" id="yui_3_16_0_ym19_1_1494063383603_38754"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_ym19_1_1494063383603_38753"> <div dir="ltr" id="yui_3_16_0_ym19_1_1494063383603_38858"><font size="2" face="Arial" id="yui_3_16_0_ym19_1_1494063383603_38857"> On Saturday, May 6, 2017 6:22 PM, Tim Northover <t.p.northover@gmail.com> wrote:<br></font></div>  <br><br> <div class="y_msg_container" id="yui_3_16_0_ym19_1_1494063383603_38752"><div dir="ltr" id="yui_3_16_0_ym19_1_1494063383603_38751">On 6 May 2017 at 04:16, Iulia Stirb via llvm-dev<br clear="none"><<a shape="rect" ymailto="mailto:llvm-dev@lists.llvm.org" href="mailto:llvm-dev@lists.llvm.org" id="yui_3_16_0_ym19_1_1494063383603_38856">llvm-dev@lists.llvm.org</a>> wrote:<br clear="none">> I know clang supports -pthread option (here). Does this mean I can call<br clear="none">> pthread routines inside llvm code<br clear="none"><br clear="none">LLVM itself can run when pthreads isn't available, so while some parts<br clear="none">do use pthreads they have alternative implementations for other<br clear="none">systems. Take a look at Mutex.cpp for example: the default is Posix<br clear="none">but there's a Windows specific version in lib/Support/Windows.<div class="yqt7364821246" id="yqtfd60953"><br clear="none"><br clear="none">> and which pthread library is used, the one for Linux OS or the one for Windows?</div><br clear="none"><br clear="none">There's never (to my knowledge) a situation where both of those are<br clear="none">valid answers: if you're running on Linux you'll use a Linux library,<br clear="none">if you're running on Windows you'll use a Windows library.</div><div dir="ltr" id="yui_3_16_0_ym19_1_1494063383603_38751"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1494063383603_38751"><span style="font-family: verdana, helvetica, sans-serif; font-size: 24px;" id="yui_3_16_0_ym19_1_1494063383603_38897">Thank you. My question was: is PThreads library for Windows supported by LLVM?</span><br clear="none"><br clear="none">Tim.<div class="yqt7364821246" id="yqtfd28882"><br clear="none"></div></div><br><br></div>  </div> </div>  </div></div></body></html>