1 /* Trivial test of critical sections. */
10 static volatile int test = -1;
12 static void function(void *dummy)
14 int iam = omp_get_thread_num ();
17 GOMP_critical_start ();
19 old = __sync_lock_test_and_set (&test, iam);
32 GOMP_parallel_start (function, NULL, 3);