9 omp_init_nest_lock (&lock
);
10 #pragma omp parallel reduction (+:l) num_threads (1)
12 if (omp_test_nest_lock (&lock
) != 1)
14 if (omp_test_nest_lock (&lock
) != 2)
16 #pragma omp task if (0) shared (lock, l)
18 if (omp_test_nest_lock (&lock
) != 0)
22 if (omp_test_nest_lock (&lock
) != 3)
24 omp_unset_nest_lock (&lock
);
25 omp_unset_nest_lock (&lock
);
26 omp_unset_nest_lock (&lock
);
30 omp_destroy_nest_lock (&lock
);