* oacc-init.c (acc_device_lock): Add explanatory comment.
commitd39966e5904c1ad9ba7d28cb3e44c5488ea21e21
authorjules <jules@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 May 2015 19:10:14 +0000 (6 19:10 +0000)
committerjules <jules@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 May 2015 19:10:14 +0000 (6 19:10 +0000)
tree148a675cc1d8e884f9647e7d6118b36eb18cda8c
parent09f66ac187dd482ab9b5e328ff38e7e7474ebb70
* oacc-init.c (acc_device_lock): Add explanatory comment.
(resolve_device): Add comment about locking requirement.
(acc_init_1, acc_shutdown_1): Likewise. Add locking around
gomp_init_device and gomp_fini_device calls.
(acc_get_num_devices, acc_set_device_type, acc_get_device_type)
(acc_get_device_num, acc_set_device_num): Add locking around
resolve_device and gomp_init_device calls.

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