Reputation: 7673
My question is very simple. I need to make use of threads on a game that will be running in android and iOS as the main platforms. I am using xcode 5 in Mac OSX 10.9 for development.
Upvotes: 3
Views: 1216
Reputation: 2640
Just did a test with XCode 5.1 IOS7.1.
std::thread t([]() {
NSLog(@"thread function");
});
Worked.
Same code runs in Android NDK r8e using GCC 4.7 (which is what I'm using atm). I updated to 9d and using GCC 4.8 it still works.
Upvotes: 4
Reputation: 514
I can only answer about android ndk.
There is gcc 4.8 in lastest adnroid NDK. It seems promised, but I did not try it.
You can. I used boost.thread at last project and it works perfect.
posix threads
About IOS, I exactly know, that you can use boost. I worked with android project, that was port from IOS. There was a lot of boost in IOS version. And I think Xcode 5 must have good support of C++11, just write some test.
Upvotes: 2