summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorNicolas Noble <pixel@nobis-crew.org>2013-08-07 14:37:27 -0700
committerNicolas Noble <pixel@nobis-crew.org>2013-08-07 14:37:27 -0700
commitb480f2b95350b2e8d0fcbaeb40872b6effc8a291 (patch)
tree4edc82f15fb9c0f6a069286d7a65e41c3741c2fa /includes
parentf7a4846ad45a7db2ffc7076689e6be607f6569ee (diff)
Code simplification. This just would bounce the same exception anyway.
Diffstat (limited to 'includes')
-rw-r--r--includes/Task.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/Task.h b/includes/Task.h
index a8702b4..6fa2161 100644
--- a/includes/Task.h
+++ b/includes/Task.h
@@ -302,7 +302,7 @@ R Future<R>::get() {
}
catch (EAgain & e) {
m_evt = e.getEvent();
- Task::operationYield(m_evt, Task::INTERRUPTIBLE);
+ throw;
}
}
}
@@ -319,7 +319,7 @@ void Future<R>::run() {
}
catch (EAgain & e) {
m_evt = e.getEvent();
- Task::operationYield(m_evt, Task::INTERRUPTIBLE);
+ throw;
}
}
}