[swift-dev] pthread_mutex vs std::mutex
Sangjin Han
tinysun.net at gmail.com
Thu Feb 25 19:51:19 CST 2016
I'm a newbie in this world. I have a qustion.
Is there any reason to prefer pthread_mutex_* to std::mutex in the swift
stdlib ?
Nowadays in C++, the std::mutex is the standard and more portable than
pthread_mutex_*.
If I'm porting the swift stdlib to non-POSIX system, which method should I
choose ?
Adding #if-#else-#endif or changing pthread to std::mutex ?
Thanks
Han Sangjin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20160226/41104684/attachment.html>
More information about the swift-dev
mailing list