This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jun 11th, 2013  |  syntax: None  |  size: 1.57 KB  |  views: 38  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. diff --git a/lib/gras_impl/input_buffer_queues.hpp b/lib/gras_impl/input_buffer_queues.hpp
  2. index 7d31b9a..5e6867e 100644
  3. --- a/lib/gras_impl/input_buffer_queues.hpp
  4. +++ b/lib/gras_impl/input_buffer_queues.hpp
  5. @@ -153,6 +153,14 @@ struct InputBufferQueues
  6.          const bool is_ready = _bitset[i];
  7.          if (is_ready and not was_ready) total_idle_times[i] += (time_now() - _became_idle_times[i]);
  8.          if (not is_ready and was_ready) _became_idle_times[i] = time_now();
  9. +        if (total_idle_times[i] > (time_now() - _init_time))
  10. +        {
  11. +            VAR(name);
  12. +            VAR(i);
  13. +            VAR(total_idle_times[i]);
  14. +            VAR(time_now());
  15. +            VAR(_init_time);
  16. +        }
  17.          ASSERT(total_idle_times[i] <= (time_now() - _init_time));
  18.      }
  19.  
  20. diff --git a/lib/gras_impl/output_buffer_queues.hpp b/lib/gras_impl/output_buffer_queues.hpp
  21. index 48d54de..272a9ff 100644
  22. --- a/lib/gras_impl/output_buffer_queues.hpp
  23. +++ b/lib/gras_impl/output_buffer_queues.hpp
  24. @@ -137,6 +137,14 @@ struct OutputBufferQueues
  25.          const bool is_ready = _bitset[i];
  26.          if (is_ready and not was_ready) total_idle_times[i] += (time_now() - _became_idle_times[i]);
  27.          if (not is_ready and was_ready) _became_idle_times[i] = time_now();
  28. +        if (total_idle_times[i] > (time_now() - _init_time))
  29. +        {
  30. +            VAR(name);
  31. +            VAR(i);
  32. +            VAR(total_idle_times[i]);
  33. +            VAR(time_now());
  34. +            VAR(_init_time);
  35. +        }
  36.          ASSERT(total_idle_times[i] <= (time_now() - _init_time));
  37.      }
clone this paste RAW Paste Data