commit | 238db851bfd1ee745ce99d1018b7dc2188b227d6 | [log] [tgz] |
---|---|---|
author | Zhenkai Zhu <zhenkai@cs.ucla.edu> | Fri Jan 25 16:27:28 2013 -0800 |
committer | Zhenkai Zhu <zhenkai@cs.ucla.edu> | Fri Jan 25 16:27:28 2013 -0800 |
tree | da9d7099a01fae9f97802e22b2ce1b353855d782 | |
parent | 3fe11722f391c34e026a116d546fac906db8ba90 [diff] |
add sleep time to eventLoop in Scheduler just in case
diff --git a/scheduler/scheduler.cc b/scheduler/scheduler.cc index 2e0e5b5..227eead 100644 --- a/scheduler/scheduler.cc +++ b/scheduler/scheduler.cc
@@ -105,6 +105,10 @@ break; } } + + // just to prevent craziness in CPU usage which supposedly should not happen + // after adding the dummy event + usleep(1000); } }