• <tfoot id='JC066'></tfoot>
      <i id='JC066'><tr id='JC066'><dt id='JC066'><q id='JC066'><span id='JC066'><b id='JC066'><form id='JC066'><ins id='JC066'></ins><ul id='JC066'></ul><sub id='JC066'></sub></form><legend id='JC066'></legend><bdo id='JC066'><pre id='JC066'><center id='JC066'></center></pre></bdo></b><th id='JC066'></th></span></q></dt></tr></i><div id='JC066'><tfoot id='JC066'></tfoot><dl id='JC066'><fieldset id='JC066'></fieldset></dl></div>

      1. <small id='JC066'></small><noframes id='JC066'>

        <legend id='JC066'><style id='JC066'><dir id='JC066'><q id='JC066'></q></dir></style></legend>

          <bdo id='JC066'></bdo><ul id='JC066'></ul>

        ppl 的替代品

        Alternatives to ppl(ppl 的替代品)
          <tbody id='oEXfY'></tbody>

          <small id='oEXfY'></small><noframes id='oEXfY'>

          • <bdo id='oEXfY'></bdo><ul id='oEXfY'></ul>
              <tfoot id='oEXfY'></tfoot>
            1. <i id='oEXfY'><tr id='oEXfY'><dt id='oEXfY'><q id='oEXfY'><span id='oEXfY'><b id='oEXfY'><form id='oEXfY'><ins id='oEXfY'></ins><ul id='oEXfY'></ul><sub id='oEXfY'></sub></form><legend id='oEXfY'></legend><bdo id='oEXfY'><pre id='oEXfY'><center id='oEXfY'></center></pre></bdo></b><th id='oEXfY'></th></span></q></dt></tr></i><div id='oEXfY'><tfoot id='oEXfY'></tfoot><dl id='oEXfY'><fieldset id='oEXfY'></fieldset></dl></div>

                <legend id='oEXfY'><style id='oEXfY'><dir id='oEXfY'><q id='oEXfY'></q></dir></style></legend>
                  本文介绍了ppl 的替代品的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  在 我之前的问题 我已经问过了,我从 Microsoft 提供的 ppl.h 中触及了 parallel_for 主题.
                  但不久之后我意识到使用它会使他的应用程序不可移植(如果我是对的,它特定于 Microsoft(ppl.h 标头)).
                  在我看来,这破坏了 C++ 编程的一个非常重要的方面 - 可移植性,我只是不准备这样做.
                  所以我的问题是:
                  1. 我说使用 ppl 中的 parallel_for 会使您的代码不可移植吗(不可移植我的意思是说它不能由除 MS 编译器之外的其他编译器编译)
                  2. 我是否正确地说,如果在后期我想为我目前正在处理的应用程序提供 UI(在 Qt 中完成),在我的代码中使用 parallel_for 将是一个障碍,这意味着我要么将使用其他(便携式)替代方案替换 parallel_for ,否则我将无法在 Qt 中执行 UI 并在 VS 中执行核心?
                  3. ppl 的(便携式)替代品是什么?

                  In my previous question I've asked, I touched the parallel_for subject from ppl.h provided by Microsoft.
                  But shortly after I've realized that by using it one makes his application unportable (if I'm right it is specific to Microsoft (the ppl.h header)).
                  In my opinion this breaks very important aspect of programming in C++ - portability, and I'm just not prepare to do it.
                  So my questions are:
                  1. Am I right in saying that using parallel_for from ppl makes your code unportable (by unportable I mean that it cannot be compiled by other compiler than the one from MS)
                  2. Am I right in saying that if on later stage I want to provide UI (done in Qt) for the application I'm working on at the momment, using parallel_for in my code will be an obstruction which would mean that either I'll replace parallel_for with some other (portable) alternative or I won't be able to do UI in Qt and core in VS?
                  3. What are the (portable) alternatives to ppl?

                  推荐答案

                  您可能需要考虑英特尔的线程构建块.与 OpenMP 不同,TBB 实际上使用 C++,而不是简单地在 C++ 编译器下编译(即:作为可以编译为 C++ 的 C 库).它具有您在 PPL 中看到的许多内容,但它是跨平台的.

                  You may want to consider Intel's Thread Building Blocks. Unlike OpenMP, TBB actually uses C++, rather than simply compiling under a C++ compiler (ie: being a C library that can compile as C++). It has many of the things you see in PPL, but it is cross-platform.

                  还有 Boost.Thread,它是 C++(虽然不像 TBB 那样直接),而且它是跨平台的.

                  There is also Boost.Thread, which is C++ (though not quite as direct as TBB is), and it is cross-platform.

                  这篇关于ppl 的替代品的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Constructor initialization Vs assignment(构造函数初始化 Vs 赋值)
                  Is a `=default` move constructor equivalent to a member-wise move constructor?(`=default` 移动构造函数是否等同于成员移动构造函数?)
                  Has the new C++11 member initialization feature at declaration made initialization lists obsolete?(声明时新的 C++11 成员初始化功能是否使初始化列表过时了?)
                  Order of constructor call in virtual inheritance(虚继承中构造函数调用的顺序)
                  How to use sfinae for selecting constructors?(如何使用 sfinae 选择构造函数?)
                  Initializing a union with a non-trivial constructor(使用非平凡的构造函数初始化联合)
                  • <bdo id='o7tkO'></bdo><ul id='o7tkO'></ul>
                    1. <legend id='o7tkO'><style id='o7tkO'><dir id='o7tkO'><q id='o7tkO'></q></dir></style></legend>

                          <small id='o7tkO'></small><noframes id='o7tkO'>

                          • <tfoot id='o7tkO'></tfoot>
                              <tbody id='o7tkO'></tbody>

                            <i id='o7tkO'><tr id='o7tkO'><dt id='o7tkO'><q id='o7tkO'><span id='o7tkO'><b id='o7tkO'><form id='o7tkO'><ins id='o7tkO'></ins><ul id='o7tkO'></ul><sub id='o7tkO'></sub></form><legend id='o7tkO'></legend><bdo id='o7tkO'><pre id='o7tkO'><center id='o7tkO'></center></pre></bdo></b><th id='o7tkO'></th></span></q></dt></tr></i><div id='o7tkO'><tfoot id='o7tkO'></tfoot><dl id='o7tkO'><fieldset id='o7tkO'></fieldset></dl></div>