Hi !

I think that what you're looking for are POSIX-thread (aka pthreads), allmost every *nix operating system provide an implementation. AFAIK MinGW provides a wrapper for pthreads (win-pthreads if i remember well). However i don't know flags to be passed to linker (probably -pthread or -lpthread).

Regards,
Romain



John Pote <johnhpote@o2.co.uk> wrote:


Hello,
Have been using Mingw recently to restore my 'C' skills on a PC rather
than the microcontrollers I usually code for. (My PC is XP Professional)

I want to add threads to my application and would appreciate suggestions
as to apprepriate thread library(s) to use. Does one come with the
normal Mingw distro? Is there a library/API that runs with Windows, xNIX
and or Mac OS X? It would be nice to think that the same code could run
on all three major OSs.

Any help appreciated,
Regards,
John

------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees_APR
_______________________________________________
MinGW-users mailing list
MinGW-users@lists.sourceforge.net

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@lists.sourceforge.net?subject=unsubscribe