<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    So, is there any interest in fixing this?<br>
    <div class="moz-forward-container"><br>
      <br>
      -------- Mensagem original --------
      <table class="moz-email-headers-table" cellpadding="0"
        cellspacing="0" border="0">
        <tbody>
          <tr>
            <th valign="BASELINE" align="RIGHT" nowrap="nowrap">Assunto:
            </th>
            <td>Re: [zeromq-dev] zmq_poll stops expiring timeout in
              virtualized Windows 7</td>
          </tr>
          <tr>
            <th valign="BASELINE" align="RIGHT" nowrap="nowrap">Data: </th>
            <td>Tue, 29 Oct 2013 10:19:08 -0200</td>
          </tr>
          <tr>
            <th valign="BASELINE" align="RIGHT" nowrap="nowrap">De: </th>
            <td>Felipe Farinon <a class="moz-txt-link-rfc2396E" href="mailto:felipe.farinon@powersyslab.com"><felipe.farinon@powersyslab.com></a></td>
          </tr>
          <tr>
            <th valign="BASELINE" align="RIGHT" nowrap="nowrap">Responder
              a: </th>
            <td>ZeroMQ development list
              <a class="moz-txt-link-rfc2396E" href="mailto:zeromq-dev@lists.zeromq.org"><zeromq-dev@lists.zeromq.org></a></td>
          </tr>
          <tr>
            <th valign="BASELINE" align="RIGHT" nowrap="nowrap">Para: </th>
            <td><a class="moz-txt-link-abbreviated" href="mailto:zeromq-dev@lists.zeromq.org">zeromq-dev@lists.zeromq.org</a></td>
          </tr>
        </tbody>
      </table>
      <br>
      <br>
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      We can make our own GetTickCount64 built around GetTickCount and
      call it when GetTickCount64 is not available in Kernel32.dll. This
      code supports Windows 2000 or greater, whereas calling
      GetTickCount64 directly from Kernel32.dll supports only Vista or
      greater.<br>
      <br>
      static DWORD s_wrap = 0;<br>
      static DWORD s_lastTick = 0;<br>
      static std::mutex s_wrapMutex;<br>
      <br>
      ULONGLONG MyGetTickCount64()<br>
      {<br>
          std::unique_lock<std::mutex>_(wrapMutex);<br>
          DWORD currentTick = ::GetTickCount();<br>
          if (currentTick < s_lastTick)<br>
              ++s_wrap;<br>
      <br>
          s_lastTick = currentTick;<br>
          return (static_cast<ULONGLONG>(s_wrap) << 32) +
      currentTick;<br>
      }<br>
      <br>
      <br>
      <div class="moz-cite-prefix">Em 24/10/2013 16:19, Felipe Farinon
        escreveu:<br>
      </div>
      <blockquote cite="mid:526964B9.8020309@powersyslab.com"
        type="cite">
        <meta content="text/html; charset=ISO-8859-1"
          http-equiv="Content-Type">
        Unfortunately, GetTickCount64 is only supported on Windows Vista
        or greater.<br>
        <br>
        <div class="moz-cite-prefix">Em 21/10/2013 16:47, Felipe Farinon
          escreveu:<br>
        </div>
        <blockquote cite="mid:526576B1.5090206@powersyslab.com"
          type="cite">
          <meta content="text/html; charset=ISO-8859-1"
            http-equiv="Content-Type">
          GetTickCount64 would solve these problems, since it returns
          the numbers of millisenconds since the machine has started.<br>
          <br>
          <div class="moz-cite-prefix">Em 16/10/2013 12:47, Steven McCoy
            escreveu:<br>
          </div>
          <blockquote
cite="mid:CAGFWLig-7BXQwMscwY+_je5QDO1Bf1SN8vva8VVMZLnQzQWc2Q@mail.gmail.com"
            type="cite">
            <div dir="ltr">On 16 October 2013 10:25, Laurent Alebarde <span
                dir="ltr"><<a moz-do-not-send="true"
                  href="mailto:l.alebarde@free.fr" target="_blank">l.alebarde@free.fr</a>></span>
              wrote:<br>
              <div class="gmail_extra">
                <div class="gmail_quote">
                  <blockquote class="gmail_quote" style="margin:0 0 0
                    .8ex;border-left:1px #ccc solid;padding-left:1ex">
                    <div bgcolor="#FFFFFF" text="#000066">
                      <div>A simplier approach is to encapsulate the
                        standard clock of your choice and save in a
                        static member the value of the last get. Then if
                        the standard clock goes back in time, you return
                        the saved value + 1.<br>
                      </div>
                    </div>
                  </blockquote>
                  <div><br>
                  </div>
                  <div>For clock drift this is fine, one doesn't even
                    have to bother with the increment for many cases.
                     However there can be major problems with NTP,
                    daylight savings, and suspend/hibernation states.</div>
                  <div><br>
                  </div>
                  <div>-- </div>
                  <div>Steve-o</div>
                </div>
              </div>
            </div>
            <br>
            <fieldset class="mimeAttachmentHeader"></fieldset>
            <br>
            <pre wrap="">_______________________________________________
zeromq-dev mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:zeromq-dev@lists.zeromq.org">zeromq-dev@lists.zeromq.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.zeromq.org/mailman/listinfo/zeromq-dev">http://lists.zeromq.org/mailman/listinfo/zeromq-dev</a>
</pre>
          </blockquote>
          <br>
          <br>
          <fieldset class="mimeAttachmentHeader"></fieldset>
          <br>
          <pre wrap="">_______________________________________________
zeromq-dev mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:zeromq-dev@lists.zeromq.org">zeromq-dev@lists.zeromq.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.zeromq.org/mailman/listinfo/zeromq-dev">http://lists.zeromq.org/mailman/listinfo/zeromq-dev</a>
</pre>
        </blockquote>
        <br>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
zeromq-dev mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:zeromq-dev@lists.zeromq.org">zeromq-dev@lists.zeromq.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.zeromq.org/mailman/listinfo/zeromq-dev">http://lists.zeromq.org/mailman/listinfo/zeromq-dev</a>
</pre>
      </blockquote>
      <br>
      <br>
    </div>
    <br>
  </body>
</html>