为 Pthreads 移植 GNU Pth 代码时有什么注意事项吗?
我有使用 GNU Pth 编写的代码 ( http://www.gnu.org/software/pth/< /a> ),我想转向 Pthreads,因为我希望它是跨平台的(Unix、Mac、Windows)。
在从 Pth 切换到 Pthreads 时,我应该注意哪些事项和注意事项,或者这主要只是重新调整参数和变量类型的问题?
I have code written using GNU Pth ( http://www.gnu.org/software/pth/ ) and I want to move to Pthreads because I want it to be cross-platform (Unix, Mac, Windows).
Are there and caveats I should watch out for while going about switching from Pth to Pthreads, or is it mostly just a matter of realigning arguments and variable types?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只是为了让人们知道:这是一个相当容易的过渡。有些命名不同,参数数量和顺序也略有不同,但总体上非常相似。
只需查找两者的 api 文档并查找它们的功能,然后将其与其他 api 文档进行比较即可。
Just to let people know: it is a fairly easy transition. Some of the naming is different, and there are slight differences in argument number and order but they are very similar overall.
Just look up the api docs for both and look up what they do and then compare it to the other api docs.