team.c (282115) | team.c (282152) |
---|---|
1/* Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. 2 Contributed by Richard Henderson <rth@redhat.com>. 3 4 This file is part of the GNU OpenMP Library (libgomp). 5 6 Libgomp is free software; you can redistribute it and/or modify it 7 under the terms of the GNU Lesser General Public License as published by 8 the Free Software Foundation; either version 2.1 of the License, or --- 281 unchanged lines hidden (view full) --- 290 start_data->ts.work_share = work_share; 291 start_data->ts.team_id = i; 292 start_data->ts.work_share_generation = 0; 293 start_data->ts.static_trip = 0; 294 start_data->fn = fn; 295 start_data->fn_data = data; 296 start_data->nested = nested; 297 | 1/* Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. 2 Contributed by Richard Henderson <rth@redhat.com>. 3 4 This file is part of the GNU OpenMP Library (libgomp). 5 6 Libgomp is free software; you can redistribute it and/or modify it 7 under the terms of the GNU Lesser General Public License as published by 8 the Free Software Foundation; either version 2.1 of the License, or --- 281 unchanged lines hidden (view full) --- 290 start_data->ts.work_share = work_share; 291 start_data->ts.team_id = i; 292 start_data->ts.work_share_generation = 0; 293 start_data->ts.static_trip = 0; 294 start_data->fn = fn; 295 start_data->fn_data = data; 296 start_data->nested = nested; 297 |
298 if (gomp_cpu_affinity != NULL) | 298 if (gomp_cpu_affinity != NULL) |
299 gomp_init_thread_affinity (attr); 300 301 err = pthread_create (&pt, attr, gomp_thread_start, start_data); | 299 gomp_init_thread_affinity (attr); 300 301 err = pthread_create (&pt, attr, gomp_thread_start, start_data); |
302 | |
303 if (err != 0) 304 gomp_fatal ("Thread creation failed: %s", strerror (err)); 305 } 306 307 if (gomp_cpu_affinity != NULL) 308 pthread_attr_destroy (&thread_attr); 309 310 do_release: --- 49 unchanged lines hidden --- | 302 if (err != 0) 303 gomp_fatal ("Thread creation failed: %s", strerror (err)); 304 } 305 306 if (gomp_cpu_affinity != NULL) 307 pthread_attr_destroy (&thread_attr); 308 309 do_release: --- 49 unchanged lines hidden --- |