]> git.sesse.net Git - vlc/commitdiff
Remove the run-time tick warning - too many false positives.
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Sun, 7 Sep 2008 19:27:35 +0000 (22:27 +0300)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Sun, 7 Sep 2008 19:28:17 +0000 (22:28 +0300)
This reverts commit 7cc631ac462df9d6caf7e98af51438956631607e.

src/misc/mtime.c

index 37a28f928b9474cd001673b8b32b228f1536d596..8bf69253206bc54ebe4eb1f22ef8ffed2e4a80a2 100644 (file)
@@ -373,27 +373,6 @@ void mwait( mtime_t date )
  */
 void msleep( mtime_t delay )
 {
-#ifndef NDEBUG
-# if defined (__linux__)
-    /* We assume that proper use of msleep() will not use a constant period...
-     * Media synchronization is likely to use mwait() with at least slight
-     * sleep length variation at microsecond precision. Network protocols
-     * normally have exponential backoffs, or long delays. */
-    static __thread unsigned tick_period = 0;
-    static __thread unsigned tick_frequency = 0;
-    if (tick_period != delay)
-        tick_frequency = 0;
-    tick_frequency++;
-    tick_period = delay;
-    if (delay < (29 * CLOCK_FREQ) && tick_frequency == 20)
-    {
-         fprintf (stderr, "Likely bogus delay(%"PRIu64"µs) ", delay);
-         vlc_backtrace ();
-    }
-    //fprintf (stderr, "%u, %u\n", tick_period, tick_frequency);
-# endif
-#endif
-
 #if defined( HAVE_CLOCK_NANOSLEEP )
     lldiv_t d = lldiv( delay, 1000000 );
     struct timespec ts = { d.quot, d.rem * 1000 };