C++ equivalent for NSOperation and NSOperationQueue

请告诉我如何在C ++中实现NSOperation和NSOperationQueue功能。


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.


粗略替代NSOperation:std :: packaged_task。

链接地址: http://www.djcxy.com/p/11636.html

上一篇: 如何在NetworkStream字节数组中放置分隔符?

下一篇: C ++等价于NSOperation和NSOperationQueue