<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Christophe,</p>
    <p><span style="font-family:Symbol" lang="EN-US"><span
          style="mso-list:Ignore"><span style="font:7.0pt "Times
            New Roman""></span></span></span><span lang="EN-US">CPL_MULTIPROC_WIN32
        is automatically set on Windows by
<a class="moz-txt-link-freetext" href="https://github.com/OSGeo/gdal/blob/104e1747748d204e8aff1945464a24b1f8c94c90/port/cpl_multiproc.h#L43">https://github.com/OSGeo/gdal/blob/104e1747748d204e8aff1945464a24b1f8c94c90/port/cpl_multiproc.h#L43</a></span></p>
    <p><span lang="EN-US">Even<br>
      </span></p>
    <div class="moz-cite-prefix">Le 04/07/2022 à 11:57, DELEPINE
      Christophe a écrit :<br>
    </div>
    <blockquote type="cite"
      cite="mid:ca37465705e94466b796d86ae28bab47@thalesgroup.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style>@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}pre
        {mso-style-priority:99;
        mso-style-link:"Préformaté HTML Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        mso-fareast-language:FR;}p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}span.PrformatHTMLCar
        {mso-style-name:"Préformaté HTML Car";
        mso-style-priority:99;
        mso-style-link:"Préformaté HTML";
        font-family:Consolas;
        mso-fareast-language:EN-US;}p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;
        mso-fareast-language:FR;}span.EmailStyle22
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}span.EmailStyle23
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}span.EmailStyle24
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}span.pre
        {mso-style-name:pre;}span.EmailStyle26
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}div.WordSection1
        {page:WordSection1;}ol
        {margin-bottom:0cm;}ul
        {margin-bottom:0cm;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><o:p> </o:p></p>
        <pre><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US">Hi Even<o:p></o:p></span></pre>
        <pre><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US"><o:p> </o:p></span></pre>
        <pre><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US">I have looked at cpl_multiproc.cpp implementation and I believe that I cannot use multithreading for the mbtiles conversion (even if I define GDAL_NUM_THREADS)<o:p></o:p></span></pre>
        <p class="MsoNormal"><span lang="EN-US">The compilation of
            cpl_multiproc.cpp depends on several compilation flags :<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoListParagraph"
          style="text-indent:-18.0pt;mso-list:l0 level1 lfo2"><!--[if !supportLists]--><span
            style="font-family:Symbol" lang="EN-US"><span
              style="mso-list:Ignore">·<span style="font:7.0pt
                "Times New Roman"">       
              </span></span></span><!--[endif]--><span lang="EN-US">CPL_MULTIPROC_STUB<o:p></o:p></span></p>
        <p class="MsoListParagraph"
          style="text-indent:-18.0pt;mso-list:l0 level1 lfo2"><!--[if !supportLists]--><span
            style="font-family:Symbol" lang="EN-US"><span
              style="mso-list:Ignore">·<span style="font:7.0pt
                "Times New Roman"">       
              </span></span></span><!--[endif]--><span lang="EN-US">CPL_MULTIPROC_WIN32<o:p></o:p></span></p>
        <p class="MsoListParagraph"
          style="text-indent:-18.0pt;mso-list:l0 level1 lfo2"><!--[if !supportLists]--><span
            style="font-family:Symbol" lang="EN-US"><span
              style="mso-list:Ignore">·<span style="font:7.0pt
                "Times New Roman"">       
              </span></span></span><!--[endif]--><span lang="EN-US">CPL_MULTIPROC_PTHREAD<o:p></o:p></span></p>
        <p class="MsoListParagraph"
          style="text-indent:-18.0pt;mso-list:l0 level1 lfo2"><!--[if !supportLists]--><span
            style="font-family:Symbol" lang="EN-US"><span
              style="mso-list:Ignore">·<span style="font:7.0pt
                "Times New Roman"">       
              </span></span></span><!--[endif]--><span lang="EN-US">CPL_MULTIPROC_NONE<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">If none of them is
            defined, then CPL_MULTIPROC_STUB is defined automatically
            which means that multithreading is disabled (thread creation
            does not work).<o:p></o:p></span></p>
        <pre><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US">I am using windows binaries of gdal I get from this site : </span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><a href="https://www.gisinternals.com/release.php" moz-do-not-send="true"><span style="color:windowtext" lang="EN-US">GISInternals Support Site</span></a><o:p></o:p></span></pre>
        <pre><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US">It seems that none of these symbols have been defined for this build process<o:p></o:p></span></pre>
        <pre><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US">I guess I would have to recompile gdal in order to enable multithreading…<o:p></o:p></span></pre>
        <pre><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US"><o:p> </o:p></span></pre>
        <pre><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US"><o:p> </o:p></span></pre>
        <pre><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US">Regards<o:p></o:p></span></pre>
        <pre><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US">Christophe<o:p></o:p></span></pre>
        <pre><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US"><o:p> </o:p></span></pre>
        <pre><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D" lang="EN-US"><o:p> </o:p></span></pre>
      </div>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
  </body>
</html>