* oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
commit09f66ac187dd482ab9b5e328ff38e7e7474ebb70
authorjules <jules@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 May 2015 16:45:49 +0000 (6 16:45 +0000)
committerjules <jules@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 May 2015 16:45:49 +0000 (6 16:45 +0000)
tree28d8cb3a48d10ec0b8097a10ccfc88a1f46deba3
parent1ddaa252d0d1cbf4999cf0f8798fd9261447b693
* oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
goacc_thread_lock on error paths.
* oacc-mem.c (lookup_host): Remove locking from function. Note
locking requirement for caller in function comment.
(lookup_dev): Likewise.
(acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
(acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
(update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
Add locking.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@222860 138bc75d-0d04-0410-961f-82ee72b054a4
libgomp/ChangeLog
libgomp/oacc-init.c
libgomp/oacc-mem.c