forked from OSchip/llvm-project
Clean-up cancellation state flag between parallel regions
Without this fix, cancellation requests in one parallel region cause cancellation of the second region even though the second one was not intended to be cancelled. llvm-svn: 250727
This commit is contained in:
parent
faf5187ee0
commit
45ca5dada1
|
@ -2083,6 +2083,10 @@ __kmp_fork_call(
|
|||
#endif /* OMP_40_ENABLED */
|
||||
team->t.t_sched = get__sched_2(parent_team, master_tid); // set master's schedule as new run-time schedule
|
||||
|
||||
#if OMP_40_ENABLED
|
||||
team->t.t_cancel_request = cancel_noreq;
|
||||
#endif
|
||||
|
||||
// Update the floating point rounding in the team if required.
|
||||
propagateFPControl(team);
|
||||
|
||||
|
|
Loading…
Reference in New Issue