diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2019-03-14 20:09:10 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2019-03-14 20:09:10 +0000 |
commit | 4254a3821b2072ba01f8f7e3347ac862d324babc (patch) | |
tree | 7d555b5e9913fdace68a1a55afa61f7eb9d42469 /runtime/src/kmp_wait_release.cpp |
Vendor import of LLVM openmp trunk r351319 (just before the release_80vendor/llvm-openmp/openmp-trunk-r351319
branch point):
https://llvm.org/svn/llvm-project/openmp/trunk@351319
Notes
Notes:
svn path=/vendor/llvm-openmp/dist/; revision=345153
svn path=/vendor/llvm-openmp/openmp-trunk-r351319/; revision=345154; tag=vendor/llvm-openmp/openmp-trunk-r351319
Diffstat (limited to 'runtime/src/kmp_wait_release.cpp')
-rw-r--r-- | runtime/src/kmp_wait_release.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/runtime/src/kmp_wait_release.cpp b/runtime/src/kmp_wait_release.cpp new file mode 100644 index 000000000000..3ebec6b057f9 --- /dev/null +++ b/runtime/src/kmp_wait_release.cpp @@ -0,0 +1,26 @@ +/* + * kmp_wait_release.cpp -- Wait/Release implementation + */ + +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.txt for details. +// +//===----------------------------------------------------------------------===// + +#include "kmp_wait_release.h" + +void __kmp_wait_64(kmp_info_t *this_thr, kmp_flag_64 *flag, + int final_spin USE_ITT_BUILD_ARG(void *itt_sync_obj)) { + if (final_spin) + __kmp_wait_template<kmp_flag_64, TRUE>( + this_thr, flag USE_ITT_BUILD_ARG(itt_sync_obj)); + else + __kmp_wait_template<kmp_flag_64, FALSE>( + this_thr, flag USE_ITT_BUILD_ARG(itt_sync_obj)); +} + +void __kmp_release_64(kmp_flag_64 *flag) { __kmp_release_template(flag); } |