PageRenderTime 9ms CodeModel.GetById 2ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 7package kilim;
 8
 9public class YieldReason implements PauseReason {
10    public boolean isValid(Task t) {
11        // Since a yield is not a reason to continue pausing, return false
12        return false;
13    }
14    @Override
15    public String toString() {
16        return "yield";
17    }
18}