Subversion Repositories programming

Rev

Rev 415 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 415 Rev 417
Line 53... Line 53...
53
     * @return false if there is nothing left to do, true otherwise
53
     * @return false if there is nothing left to do, true otherwise
54
     */
54
     */
55
    protected boolean step ()
55
    protected boolean step ()
56
    {
56
    {
57
        /* Stop if we have nothing left to do */
57
        /* Stop if we have nothing left to do */
58
        if (cur_proc == null && run_queue.isEmpty ())
58
        if (schedulerFinished ())
59
            return false;
59
            return false;
60
 
60
 
-
 
61
        /* Pull in any new processes */
-
 
62
        queueWaitingProcesses ();
-
 
63
 
61
        /* Get a new process if we need to */
64
        /* Get a new process if we need to */
62
        if (cur_proc == null)
65
        if (cur_proc == null)
63
        {
66
        {
64
            startProcess (run_queue.firstElement ());
67
            startProcess (run_queue.firstElement ());
65
            cur_proc_runtime = 0;
68
            cur_proc_runtime = 0;