We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbe4b43 commit 4c5e2cdCopy full SHA for 4c5e2cd
src/main/java/org/truffleruby/core/thread/ThreadNodes.java
@@ -454,9 +454,9 @@ protected DynamicObject wakeup(DynamicObject rubyThread) {
454
throw new RaiseException(getContext(), coreExceptions().threadErrorKilledThread(this));
455
}
456
457
+ // This only interrupts Kernel#sleep, Mutex#sleep and ConditionVariable#wait by having those check for the
458
+ // wakeup flag. Other operations just retry when interrupted.
459
Layouts.THREAD.getWakeUp(rubyThread).set(true);
-
- // TODO: should only interrupt sleep
460
getContext().getThreadManager().interrupt(thread);
461
462
return rubyThread;
0 commit comments