5

I have an open-source project that must build under Win32/Win64/Linux/MacOSX.

We would like to use pthreads to support our multithreading paradigm, however as my project is open-source everything must be build from source. As such I need the source-code file(s) for a version of pthreads that will compile on Win64.

Does anyone know where I can find said file(s)?

Ho Cheung
  • 141
  • 1
  • 7
  • 3
    According to the accepted answer here: http://stackoverflow.com/questions/2797690/portability-of-pthreads-win32-over-various-compilers it apparently builds for x64 and is usable for at least a few users. You can get source here: http://sourceware.org/pthreads-win32/ – Michael Burr Feb 01 '12 at 23:23

1 Answers1

0

Not a direct replacement for pthreads, but SDL2 features a threading interface that closely resembles pthreads, and will let you build on linux,osx,windows,android,ios.

SDL2 thread support

SDL2 mutex/cond var support

Bram
  • 7,440
  • 3
  • 52
  • 94