Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C++0x threads question

I have a question regarding the c++0x standard threads.Can they be used at the moment (in vc++ 2010)? I see people providing tutorials on how to use them, but im a bit confused if the library can actually be used atm. I know you can use things like "auto" in vc++, so i thought i'd ask :. Every time i try and use the new threads, i get errors when trying to include them. This makes me think the answer to my question is "No", but wtf is up with the tutorials+other people using them!?

If not, can someone point me in the right direction? I just want to learn about threads, and not have to learn worry about platforms :.

like image 708
Bob Avatar asked Dec 08 '25 22:12

Bob


1 Answers

No standard threading exists in VC++ 2010. Maybe you should try the Boost threads library; the standard threading library is based off it so migration will likely be very easy once VC++ does support standard threading.

As for other people writing tutorials about them, VC++ is one compiler among many, and others may be quicker to support the new standard.

like image 123
Jeff Linahan Avatar answered Dec 12 '25 13:12

Jeff Linahan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!