Jim Cownie | 4cc4bb4 | 2014-10-07 16:25:50 +0000 | [diff] [blame] | 1 | /* |
| 2 | * kmp_wait_release.cpp -- Wait/Release implementation |
Jim Cownie | 4cc4bb4 | 2014-10-07 16:25:50 +0000 | [diff] [blame] | 3 | */ |
| 4 | |
Jim Cownie | 4cc4bb4 | 2014-10-07 16:25:50 +0000 | [diff] [blame] | 5 | //===----------------------------------------------------------------------===// |
| 6 | // |
Chandler Carruth | 57b08b0 | 2019-01-19 10:56:40 +0000 | [diff] [blame] | 7 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 8 | // See https://llvm.org/LICENSE.txt for license information. |
| 9 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
Jim Cownie | 4cc4bb4 | 2014-10-07 16:25:50 +0000 | [diff] [blame] | 10 | // |
| 11 | //===----------------------------------------------------------------------===// |
| 12 | |
| 13 | #include "kmp_wait_release.h" |
| 14 | |
Jonathan Peyton | 3041982 | 2017-05-12 18:01:32 +0000 | [diff] [blame] | 15 | void __kmp_wait_64(kmp_info_t *this_thr, kmp_flag_64 *flag, |
| 16 | int final_spin USE_ITT_BUILD_ARG(void *itt_sync_obj)) { |
Jonathan Peyton | a764af6 | 2018-07-19 19:17:00 +0000 | [diff] [blame] | 17 | if (final_spin) |
| 18 | __kmp_wait_template<kmp_flag_64, TRUE>( |
| 19 | this_thr, flag USE_ITT_BUILD_ARG(itt_sync_obj)); |
| 20 | else |
| 21 | __kmp_wait_template<kmp_flag_64, FALSE>( |
| 22 | this_thr, flag USE_ITT_BUILD_ARG(itt_sync_obj)); |
Jim Cownie | 4cc4bb4 | 2014-10-07 16:25:50 +0000 | [diff] [blame] | 23 | } |
| 24 | |
Jonathan Peyton | 3041982 | 2017-05-12 18:01:32 +0000 | [diff] [blame] | 25 | void __kmp_release_64(kmp_flag_64 *flag) { __kmp_release_template(flag); } |