~ubuntu-branches/ubuntu/precise/zeromq/precise

« back to all changes in this revision

Viewing changes to src/app_thread.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Martin Lucina
  • Date: 2010-10-21 16:21:20 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20101021162120-g6f3z4wlrrcgqicj
Tags: 2.0.10-1
* New upstream version.
* Upstream now uses DFSG-clean OpenPGM tarball, so dropping .dfsg from 
  the Debian version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
111
111
#error
112
112
#endif
113
113
 
114
 
            //  Check whether certain time have elapsed since last command
115
 
            //  processing.
116
 
            if (current_time - last_processing_time <= max_command_delay)
 
114
            //  Check whether TSC haven't jumped backwards (in case of migration
 
115
            //  between CPU cores) and whether certain time have elapsed since
 
116
            //  last command processing. If it didn't do nothing.
 
117
            if (current_time >= last_processing_time &&
 
118
                  current_time - last_processing_time <= max_command_delay)
117
119
                return !terminated;
118
120
            last_processing_time = current_time;
119
121
        }