Subversion Repositories HelenOS

Rev

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

Rev 4510 Rev 4513
Line 143... Line 143...
143
    if (stype == FIBRIL_FROM_MANAGER) {
143
    if (stype == FIBRIL_FROM_MANAGER) {
144
        if (list_empty(&ready_list) && list_empty(&serialized_list))
144
        if (list_empty(&ready_list) && list_empty(&serialized_list))
145
            goto ret_0;
145
            goto ret_0;
146
        /*
146
        /*
147
         * Do not preempt if there is not enough threads to run the
147
         * Do not preempt if there is not enough threads to run the
148
         * ready fibrils, which are not serialized.
148
         * ready fibrils which are not serialized.
149
         */
149
         */
150
        if (list_empty(&serialized_list) &&
150
        if (list_empty(&serialized_list) &&
151
            threads_in_manager <= serialized_threads) {
151
            threads_in_manager <= serialized_threads) {
152
            goto ret_0;
152
            goto ret_0;
153
        }
153
        }