Subversion Repositories HelenOS-historic

Rev

Rev 15 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 15 Rev 22
Line 199... Line 199...
199
        spinlock_lock(&THREAD->lock);
199
        spinlock_lock(&THREAD->lock);
200
        if (!context_save(&THREAD->saved_context)) {
200
        if (!context_save(&THREAD->saved_context)) {
201
            /*
201
            /*
202
             * This is the place where threads leave scheduler();
202
             * This is the place where threads leave scheduler();
203
             */
203
             */
-
 
204
            before_thread_runs();
204
                spinlock_unlock(&THREAD->lock);
205
                spinlock_unlock(&THREAD->lock);
205
            cpu_priority_restore(THREAD->saved_context.pri);
206
            cpu_priority_restore(THREAD->saved_context.pri);
206
            return;
207
            return;
207
        }
208
        }
208
        THREAD->saved_context.pri = pri;
209
        THREAD->saved_context.pri = pri;