oacc-init.c (acc_device_lock): Add explanatory comment.
authorJulian Brown <julian@codesourcery.com>
Wed, 6 May 2015 19:10:14 +0000 (19:10 +0000)
committerJulian Brown <jules@gcc.gnu.org>
Wed, 6 May 2015 19:10:14 +0000 (19:10 +0000)
commitd2463960a40d5ce16499da8b4d5317ace514586d
tree148a675cc1d8e884f9647e7d6118b36eb18cda8c
parente38fdba42b1380d32845b3891a3e0deb4b653e1a
oacc-init.c (acc_device_lock): Add explanatory comment.

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

From-SVN: r222862
libgomp/ChangeLog
libgomp/oacc-init.c