3 ms·
> Porting pthreads code to Windows would be a nightmare. Porting one application using pthreads to use the Win32 API directly is however a lot more reasonable
by account42 1y ago
> Porting pthreads code to Windows would be a nightmare.
Porting one application using pthreads to use the Win32 API directly is however a lot more reasonable and provides you more opportunity to deal with impedance mismatches than a full API shim has. Same goes for dirent and other things as well as for the reverse direction. Some slightly higher level abstraction for the thnings your program actually needs is usually a better solution for cross-platform applications than using one OS API and emulating it on other systems.