Skip to content
Browse files

rename maybeKill to checkKill, and make it public

  • Loading branch information...
1 parent 4dadb71 commit 6b30eb00b29fd6c044fa7ebc231ed50a1aa21cd6 @krestenkrab committed Dec 3, 2009
Showing with 4 additions and 3 deletions.
  1. +1 −0 src/kilim/Mailbox.java
  2. +3 −3 src/kilim/Task.java
View
1 src/kilim/Mailbox.java
@@ -331,6 +331,7 @@ public boolean putnb(T msg) {
public void put(T msg) throws Pausable {
Task t = Task.getCurrentTask();
+ t.checkKill();
while (!put(msg, t)) {
Task.pause(this);
}
View
6 src/kilim/Task.java
@@ -134,9 +134,9 @@ public void kill(Error ex) {
resume();
}
- private void maybeKill() {
+ public void checkKill() {
if (this.death_ex != null) {
- System.err.println("killing "+this+": throw "+death_ex);
+ // System.err.println("killing "+this+": throw "+death_ex);
throw this.death_ex;
}
}
@@ -292,7 +292,7 @@ public static void pause(PauseReason pauseReason, Fiber f) {
f.task.setPauseReason(null);
}
f.togglePause();
- f.task.maybeKill();
+ f.task.checkKill();
}
/*

0 comments on commit 6b30eb0

Please sign in to comment.
Something went wrong with that request. Please try again.