Jump to content

View more

Image of the Day

The night is still, but the invasion brings chaos. #screenshotsaturday #hanako #indiegame #gameart #ue4 #samurai https://t.co/cgILXuokoS
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

c++ 0x threading problem

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
3 replies to this topic

#1 Jeffreyp   Members   

178
Like
0Likes
Like

Posted 05 March 2012 - 10:47 AM

Hello guys,

I am reading a book called c++ concurrency in action and i wanted to try
something on my own. So i fire up visual studio 2010(ultimate edition) and try to include
thread.h and mutex. To my surprise visual studio couldn't find the headers.

Is it my fault? Or does visual studio not support it?

Thanks in advance

#2 Washu   Senior Moderators   

7803
Like
1Likes
Like

Posted 05 March 2012 - 10:54 AM

It would be <thread> and <mutex>, and no, VS2010 does not have C++11 threading libraries in it yet. You can use boost thread though.

In time the project grows, the ignorance of its devs it shows, with many a convoluted function, it plunges into deep compunction, the price of failure is high, Washu's mirth is nigh.
ScapeCode - Blog | SlimDX


#3 achild   Members   

2194
Like
1Likes
Like

Posted 05 March 2012 - 10:57 AM

Also, though it's not super useful to you just yet, VS2011 looks like it will have the majority of the new standard threading libraries.

#4 Jeffreyp   Members   

178
Like
0Likes
Like

Posted 05 March 2012 - 11:19 AM

Oke thanks : )




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.