r135035 - in /branches/gomp-3_0-branch/libgomp:...

jakub@gcc.gnu.org jakub@gcc.gnu.org
Wed May 7 09:05:00 GMT 2008


Author: jakub
Date: Wed May  7 09:05:03 2008
New Revision: 135035

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=135035
Log:
	* libgomp.h (struct gomp_thread): Add thread_pool field.
	(struct gomp_thread_pool): New type.
	(gomp_icv): Fix formatting.
	* team.c (gomp_threads, gomp_threads_size, gomp_threads_used,
	gomp_threads_dock): Removed.
	(gomp_thread_pool_destructor): New variable.
	(struct gomp_thread_start_data): Add thread_pool field.
	(gomp_thread_start): Use pool fields instead of global
	gomp_* variables.
	(gomp_new_thread_pool, gomp_free_pool_helper,
	gomp_free_thread_pool): New functions.
	(gomp_team_start): Create new pool if current thread doesn't have
	one.  Use pool fields instead of global gomp_* variables. 
	Initialize thread_pool field for new threads.
	(initialize_team): Call pthread_key_create on
	gomp_thread_pool_destructor.
	(team_destructor): New function.

Modified:
    branches/gomp-3_0-branch/libgomp/ChangeLog.gomp
    branches/gomp-3_0-branch/libgomp/libgomp.h
    branches/gomp-3_0-branch/libgomp/team.c



More information about the Gcc-cvs mailing list