Skip to content

Commit

Permalink
Merge pull request #9 from travisgriggs/fix_new_task_reschedule
Browse files Browse the repository at this point in the history
Force a switch if created with _OPT_START.
  • Loading branch information
dimonomid authored Jan 13, 2018
2 parents 1ae519c + 9d886c9 commit 8f95d20
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/tn_tasks.c
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,9 @@ enum TN_RCode tn_task_create(

if (context == TN_CONTEXT_TASK){
TN_INT_RESTORE();
if ((opts & TN_TASK_CREATE_OPT_START)){
_tn_context_switch_pend_if_needed();
}
}

return rc;
Expand Down

0 comments on commit 8f95d20

Please sign in to comment.