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).


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

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,

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.
MinGW-users mailing list

This list observes the Etiquette found at
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:
Also: mailto:mingw-users-request@lists.sourceforge.net?subject=unsubscribe