libgomp: Use pthread mutexes in the nvptx plugin.
commit4de7ea8222739fa60d6eb81284dac61dc2bae7b2
authortschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 12 Jan 2015 14:35:51 +0000 (12 14:35 +0000)
committertschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 12 Jan 2015 14:35:51 +0000 (12 14:35 +0000)
tree22be59ec8c94d1972776b2225827205e88cdaa02
parent6a7b5ecaf813defaf85cc7bf7a3de848d629880f
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gomp-4_0-branch@219467 138bc75d-0d04-0410-961f-82ee72b054a4
libgomp/ChangeLog.gomp
libgomp/libgomp-plugin.c
libgomp/libgomp-plugin.h
libgomp/libgomp.map
libgomp/plugin/plugin-nvptx.c