/src/kilim/YieldReason.java

http://github.com/kilim/kilim · Java · 18 lines · 10 code · 2 blank · 6 comment · 0 complexity · df191b63abbdb635b8661e950e16e66b MD5 · raw file

  1. /* Copyright (c) 2006, Sriram Srinivasan
  2. *
  3. * You may distribute this software under the terms of the license
  4. * specified in the file "License"
  5. */
  6. package kilim;
  7. public class YieldReason implements PauseReason {
  8. public boolean isValid(Task t) {
  9. // Since a yield is not a reason to continue pausing, return false
  10. return false;
  11. }
  12. @Override
  13. public String toString() {
  14. return "yield";
  15. }
  16. }