<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <p>There is no special semantics associated to native methods. E.g.
      you would get the same blocking behavior you'd get when calling
      the function with C: if the function returns immediately, that
      same function, invoked via a downcall method handle should also
      return immediately.</p>
    <p>If the target function spins an asynchronous thread and performs
      some extra execution there, Panama will *not* wait for that
      computation to end (again, same as C).</p>
    <p>Maurizio<br>
    </p>
    <div class="moz-cite-prefix">On 06/03/2023 15:51, Martin Pernollet
      wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:yheMD_bUolYCbWfPGlBY0dOqNroe19ktIVasKr3H8jhJ_EmGJhdTX0w9Wf12g0RbrBDqjc-MrplzpzCLXWbXtK_q_JARmoYBn5CYWeq7YAY=@protonmail.com">
      
      <div style="font-family: Arial, sans-serif; font-size: 14px;">Hi,</div>
      <div style="font-family: Arial, sans-serif; font-size: 14px;"><br>
      </div>
      <div style="font-family: Arial, sans-serif; font-size: 14px;">While
        trying to compare the performance of generated binding with
        frameworks that do not use Panama, I was surprised to measure a
        (too) small time while invoking Panama generated methods in one
        of my benchmarks. </div>
      <div style="font-family: Arial, sans-serif; font-size: 14px;"><br>
      </div>
      <div style="font-family: Arial, sans-serif; font-size: 14px;">I
        thus wondered if these methods are blocking or not while
        invoking their native counterparts?</div>
      <div style="font-family: Arial, sans-serif; font-size: 14px;"><br>
      </div>
      <div style="font-family: Arial, sans-serif; font-size: 14px;">Thanks
        in advance!</div>
      <div style="font-family: Arial, sans-serif; font-size: 14px;"><br>
      </div>
      <div style="font-family: Arial, sans-serif; font-size: 14px;">Martin </div>
    </blockquote>
  </body>
</html>