<div dir="ltr"><div>I&#39;m a newbie in this world. I have a qustion.</div><div><br></div>Is there any reason to prefer pthread_mutex_* to std::mutex in the swift stdlib ?<div><br></div><div>Nowadays in C++, the std::mutex is the standard and more portable than pthread_mutex_*.</div><div><br></div><div>If I&#39;m porting the swift stdlib to non-POSIX system, which method should I choose ?</div><div><br></div><div>Adding #if-#else-#endif or changing pthread to std::mutex ?</div><div><br></div><div>Thanks</div><div><br></div><div>Han Sangjin</div></div>