<div dir="ltr">OK, merged :)</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Nov 7, 2013 at 5:10 PM, Felipe Farinon <span dir="ltr"><<a href="mailto:felipe.farinon@powersyslab.com" target="_blank">felipe.farinon@powersyslab.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <a href="https://github.com/zeromq/libzmq/pull/742" target="_blank">https://github.com/zeromq/libzmq/pull/742</a><br>
    <br>
    <div>Em 06/11/2013 11:14, Pieter Hintjens
      escreveu:<br>
    </div><div><div class="h5">
    <blockquote type="cite">
      <div dir="ltr">Felipe,
        <div><br>
        </div>
        <div>If you want to, please make a pull request with the change.</div>
        <div><br>
        </div>
        <div>Thanks</div>
        <div>Pieter</div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Wed, Nov 6, 2013 at 2:05 PM, Felipe
          Farinon <span dir="ltr"><<a href="mailto:felipe.farinon@powersyslab.com" target="_blank">felipe.farinon@powersyslab.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF"> So, is there any
              interest in fixing this?<br>
              <div><br>
                <br>
                -------- Mensagem original --------
                <table cellpadding="0" cellspacing="0" border="0">
                  <tbody>
                    <tr>
                      <th valign="BASELINE" align="RIGHT" 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>Data: </th>
                      <td>Tue, 29 Oct 2013 10:19:08 -0200</td>
                    </tr>
                    <tr>
                      <th valign="BASELINE" align="RIGHT" nowrap>De: </th>
                      <td>Felipe Farinon <a href="mailto:felipe.farinon@powersyslab.com" target="_blank"><felipe.farinon@powersyslab.com></a></td>
                    </tr>
                    <tr>
                      <th valign="BASELINE" align="RIGHT" nowrap>Responder a: </th>
                      <td>ZeroMQ development list <a href="mailto:zeromq-dev@lists.zeromq.org" target="_blank"><zeromq-dev@lists.zeromq.org></a></td>
                    </tr>
                    <tr>
                      <th valign="BASELINE" align="RIGHT" nowrap>Para: </th>
                      <td><a href="mailto:zeromq-dev@lists.zeromq.org" target="_blank">zeromq-dev@lists.zeromq.org</a></td>
                    </tr>
                  </tbody>
                </table>
                <div>
                  <div> <br>
                    <br>
                    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>Em 24/10/2013 16:19, Felipe Farinon escreveu:<br>
                    </div>
                    <blockquote type="cite"> Unfortunately,
                      GetTickCount64 is only supported on Windows Vista
                      or greater.<br>
                      <br>
                      <div>Em 21/10/2013 16:47, Felipe Farinon escreveu:<br>
                      </div>
                      <blockquote type="cite"> GetTickCount64 would
                        solve these problems, since it returns the
                        numbers of millisenconds since the machine has
                        started.<br>
                        <br>
                        <div>Em 16/10/2013 12:47, Steven McCoy escreveu:<br>
                        </div>
                        <blockquote type="cite">
                          <div dir="ltr">On 16 October 2013 10:25,
                            Laurent Alebarde <span dir="ltr"><<a 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></fieldset>
                          <br>
                          <pre>_______________________________________________
zeromq-dev mailing list
<a href="mailto:zeromq-dev@lists.zeromq.org" target="_blank">zeromq-dev@lists.zeromq.org</a>
<a href="http://lists.zeromq.org/mailman/listinfo/zeromq-dev" target="_blank">http://lists.zeromq.org/mailman/listinfo/zeromq-dev</a>
</pre>
                        </blockquote>
                        <br>
                        <br>
                        <fieldset></fieldset>
                        <br>
                        <pre>_______________________________________________
zeromq-dev mailing list
<a href="mailto:zeromq-dev@lists.zeromq.org" target="_blank">zeromq-dev@lists.zeromq.org</a>
<a href="http://lists.zeromq.org/mailman/listinfo/zeromq-dev" target="_blank">http://lists.zeromq.org/mailman/listinfo/zeromq-dev</a>
</pre>
                      </blockquote>
                      <br>
                      <br>
                      <fieldset></fieldset>
                      <br>
                      <pre>_______________________________________________
zeromq-dev mailing list
<a href="mailto:zeromq-dev@lists.zeromq.org" target="_blank">zeromq-dev@lists.zeromq.org</a>
<a href="http://lists.zeromq.org/mailman/listinfo/zeromq-dev" target="_blank">http://lists.zeromq.org/mailman/listinfo/zeromq-dev</a>
</pre>
                    </blockquote>
                    <br>
                    <br>
                  </div>
                </div>
              </div>
              <br>
            </div>
            <br>
            _______________________________________________<br>
            zeromq-dev mailing list<br>
            <a href="mailto:zeromq-dev@lists.zeromq.org" target="_blank">zeromq-dev@lists.zeromq.org</a><br>
            <a href="http://lists.zeromq.org/mailman/listinfo/zeromq-dev" target="_blank">http://lists.zeromq.org/mailman/listinfo/zeromq-dev</a><br>
            <br>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        -<br>
        Pieter Hintjens<br>
        CEO of iMatix.com<br>
        Founder of ZeroMQ community<br>
        blog: <a href="http://hintjens.com" target="_blank">http://hintjens.com</a>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
zeromq-dev mailing list
<a href="mailto:zeromq-dev@lists.zeromq.org" target="_blank">zeromq-dev@lists.zeromq.org</a>
<a href="http://lists.zeromq.org/mailman/listinfo/zeromq-dev" target="_blank">http://lists.zeromq.org/mailman/listinfo/zeromq-dev</a>
</pre>
    </blockquote>
    <br>
  </div></div></div>

<br>_______________________________________________<br>
zeromq-dev mailing list<br>
<a href="mailto:zeromq-dev@lists.zeromq.org">zeromq-dev@lists.zeromq.org</a><br>
<a href="http://lists.zeromq.org/mailman/listinfo/zeromq-dev" target="_blank">http://lists.zeromq.org/mailman/listinfo/zeromq-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>-<br>Pieter Hintjens<br>CEO of iMatix.com<br>Founder of ZeroMQ community<br>blog: <a href="http://hintjens.com" target="_blank">http://hintjens.com</a>
</div>