r219467 - in /branches/gomp-4_0-branch/libgomp:...

tschwinge@gcc.gnu.org tschwinge@gcc.gnu.org
Mon Jan 12 14:35:00 GMT 2015


Author: tschwinge
Date: Mon Jan 12 14:35:51 2015
New Revision: 219467

URL: https://gcc.gnu.org/viewcvs?rev=219467&root=gcc&view=rev
Log:
libgomp: Use pthread mutexes in the nvptx plugin.

... instead of libgomp's internal mutex implementation.  Plugins aren't to
depend on internal libgomp interfaces, and how would you instantiate a
gomp_mutex_t in a plugin without knowing what it is exactly?

	libgomp/
	* plugin/plugin-nvptx.c (struct ptx_device): Turn stream_lock
	member into a pthread_mutex_t.  Adjust all users.
	(ptx_event_lock): Likewise.
	* libgomp-plugin.c (GOMP_PLUGIN_mutex_init)
	(GOMP_PLUGIN_mutex_destroy, GOMP_PLUGIN_mutex_lock)
	(GOMP_PLUGIN_mutex_unlock): Remove.
	* libgomp-plugin.h (GOMP_PLUGIN_mutex_init)
	(GOMP_PLUGIN_mutex_destroy, GOMP_PLUGIN_mutex_lock)
	(GOMP_PLUGIN_mutex_unlock): Likewise.
	* libgomp.map (GOMP_PLUGIN_1.0): Remove GOMP_PLUGIN_mutex_init,
	GOMP_PLUGIN_mutex_destroy, GOMP_PLUGIN_mutex_lock,
	GOMP_PLUGIN_mutex_unlock.

Modified:
    branches/gomp-4_0-branch/libgomp/ChangeLog.gomp
    branches/gomp-4_0-branch/libgomp/libgomp-plugin.c
    branches/gomp-4_0-branch/libgomp/libgomp-plugin.h
    branches/gomp-4_0-branch/libgomp/libgomp.map
    branches/gomp-4_0-branch/libgomp/plugin/plugin-nvptx.c



More information about the Gcc-cvs mailing list