reactor: turn bench-poll into a proper benchmark (#662)

This commit is contained in:
Stjepan Glavina
2018-09-26 08:52:35 -07:00
committed by Carl Lerche
parent 46353737e7
commit 331a88cee6
5 changed files with 64 additions and 49 deletions
+1 -1
View File
@@ -173,7 +173,7 @@ impl Task {
/// Notify the task
pub fn notify(me: Arc<Task>, pool: &Arc<Pool>) {
if me.schedule(){
if me.schedule() {
let _ = pool.submit(me, pool);
}
}