开发者

Windows port/implementation for GNU Pth (Gnu Portable Threads)

I have inherited a pure C project that uses GNU Pth ( http开发者_StackOverflow://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?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜