Skip to content

Commit

Permalink
Force a switch if created with _OPT_START.
Browse files Browse the repository at this point in the history
  • Loading branch information
travisgriggs committed Jan 13, 2018
1 parent 1ae519c commit 9d886c9
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 9d886c9

Please sign in to comment.