Search code examples
c++objective-cnsoperationnsoperationqueue

C++ equivalent for NSOperation and NSOperationQueue


Please advise me to how to achieve NSOperation and NSOperationQueue functionality in C++.


Solution

  • NSOperation is a class for managing non-critical tasks. You create Operations, and place them on the NSOperationQueue and each operation is performed as the app executes.

    There is no such "equivalent" in C++. C++ is a language, as NSOperationQueue is part of FoundationKit a part of OSX and iOS, a set of Objective-C objects, that aren't part of the objective-c standard.

    What you'll need to research is the Android paradigms for doing task concurrency, and use those. Or you can just manually download the assets from the server, in-lieu of any managed task library.