Using pthread.h on a windows build

后端 未结 3 700
陌清茗
陌清茗 2020-12-19 03:37

I have a codebase that makes extensive use of pthread.h. On a windows visual studio project, this obviously doesn\'t work since pthreads is a unix utility.

I know t

3条回答
  •  南笙
    南笙 (楼主)
    2020-12-19 04:04

    Try http://sourceware.org/pthreads-win32/. While I've never used that particular library, I've had luck using some windows ports/abstraction layers of POSIX APIs.

提交回复
热议问题