GNU Pth(Gnu 可移植线程)的 Windows 端口/实现
我继承了一个使用 GNU Pth 的纯 C 项目( http://www.gnu.org/software /pth/ ),我希望有一个 Windows 端口/实现,这样我就不必在我的代码中添加一大堆(更多)条件。
我知道我充满希望,但是有什么可以提供完全相同的函数签名和功能吗?
如果没有,有没有好的纯C跨平台多线程库(即使它与Pth不同)?
编辑:
我刚刚发现http://en.wikipedia.org/ wiki/Netscape_Portable_Runtime#Threads 听起来这可能是正确的选择。对 NSPR 的看法?
I have inherited a pure C project that uses GNU Pth ( http://www.gnu.org/software/pth/ ) and I was hoping that there was a Windows port/implementation so I wouldn't have to stick a whole bunch (more) conditionals into my code.
I know I am being hopeful, but is there anything that provides the exact same function signatures and functionality?
If not, is there any good pure C cross-platform multi-threading library (even if it is different than Pth)?
Edit:
I just found http://en.wikipedia.org/wiki/Netscape_Portable_Runtime#Threads and it sounds like that might be the way to go. Opinions on NSPR?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您在 Windows 上有 pthread http://sourceware.org/pthreads-win32/ ,它非常稳定而且表演都很好。这就是我们用来将线程化 Unix 代码移植到 Windows 的方法。
You have pthread on windows http://sourceware.org/pthreads-win32/ which is quite stable and the performances are good. This is what we use to port our threaded unix code to windows.