2

I'm trying to write some multithreading code for mobile apps. I'm thinking about Boost C++ thread library for both iOS and Android. But anyone knows if Boost thread is supported by both platforms? Thanks!

tonga
  • 11,749
  • 25
  • 75
  • 96

2 Answers2

6

Yes, I'm currently maintaining boost::thread code that runs on iOS and Android.

That said, unless you're attempting to run the same codebase on the two platforms, I would recommend Grand Central Dispatch on iOS instead of boost::thread.

Matt Wilding
  • 20,115
  • 3
  • 67
  • 95
  • Thanks a lot for your answer. Besides thread library, are all other libraries supported by both iOS and Android? I really want to use all good features in Boost library. – tonga Sep 16 '12 at 23:47
  • 1
    Yes, I've been able to leverage many of the boost libraries successfully. I haven't run into a library that didn't work. – Matt Wilding Sep 17 '12 at 00:40
3

I think these posts may help you:

Boost C++ and Android 3

C++ Boost on iPhone

Sounds like it's possible on both Android and IOS

Community
  • 1
  • 1
Aerilys
  • 1,628
  • 1
  • 16
  • 22