oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for goacc_thread_lock on error...
authorJulian Brown <julian@codesourcery.com>
Wed, 6 May 2015 16:45:49 +0000 (16:45 +0000)
committerJulian Brown <jules@gcc.gnu.org>
Wed, 6 May 2015 16:45:49 +0000 (16:45 +0000)
commite38fdba42b1380d32845b3891a3e0deb4b653e1a
tree28d8cb3a48d10ec0b8097a10ccfc88a1f46deba3
parent5a0ff57c48cbaeedfac667d5e808baca8dbcb83c
oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for goacc_thread_lock on error paths.

* 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.

From-SVN: r222860
libgomp/ChangeLog
libgomp/oacc-init.c
libgomp/oacc-mem.c