Alternative of CWinThread

105 Views Asked by At

I am trying to convert a piece of code which is written in Windows to a platform agnostic version, and need some suggestions on how we can convert the CWinThread functions (and data members) to something which is capable of working on all platforms (Linux, Mac etc). Any suggestions welcome.

1

There are 1 best solutions below

1
fdollack On

Depending on the size of your program you could work with #ifdef and just add pthreads for unix based systems, or have a look at multi-platform libraries such as here or here.