Original Post
Hello! I have been working on my C++ for a while now, and have gotten quite far. Just so you know, I am NOT new to programming.. I have MANY languages under my belt, but most are lightweight scripting languages. The reason I began learning C++ was mostly because a) I want to know a more powerful language then the ones I currently know, and b) I want to program games ;) Anyways, enough of the background mumbo-jumbo, my question is about threading. I used to dabble in Java before I took the jump to C++ (don't try post any Java code on me, that was years ago and I really don't remember much ;)) and remember following a "Space Invaders" game tutorial that featured threading. Threading was pretty easy in Java from what I remember at least, and am fearing that threading is something feared in C++ (I get the impression it isn't too easy). Well, I was just wondering where to start. Are there any good newbie threading tutorials for C++? Are there any good threading libraries? Some things to note: - Portability is a VERY high concern for me. I want to be able to use the same(ish) code on Windows, Linux, other Unixes, and Mac, IF this is possible. - I want to make use of C++'s OOP, so a threading tutorial that utilizes classes would be great I can program in C++ so don't worry about showing me anything you think may be over my head (it most likely is but no hurt in trying ;)). Currently, I am programming a roguelike game to expand my learning, and over a couple weeks (of not much coding) things are starting to look good. I tried searching for some threading tutorials but all I found didn't seem to compile correctly (seemed like there was a missing library.. what do I need to include to have threading functions?). Just so you know, I am developing on a Windows Vista machine using GNU G++ through MinGW. I also have a shell account on a Linux box for testing purposes (not sure of distro). Thank you!