blob: 3ebec6b057f97c0d6605ca62fb62da05d57b9f49 [file] [log] [blame]
Jim Cownie4cc4bb42014-10-07 16:25:50 +00001/*
2 * kmp_wait_release.cpp -- Wait/Release implementation
Jim Cownie4cc4bb42014-10-07 16:25:50 +00003 */
4
Jim Cownie4cc4bb42014-10-07 16:25:50 +00005//===----------------------------------------------------------------------===//
6//
7// The LLVM Compiler Infrastructure
8//
9// This file is dual licensed under the MIT and the University of Illinois Open
10// Source Licenses. See LICENSE.txt for details.
11//
12//===----------------------------------------------------------------------===//
13
14#include "kmp_wait_release.h"
15
Jonathan Peyton30419822017-05-12 18:01:32 +000016void __kmp_wait_64(kmp_info_t *this_thr, kmp_flag_64 *flag,
17 int final_spin USE_ITT_BUILD_ARG(void *itt_sync_obj)) {
Jonathan Peytona764af62018-07-19 19:17:00 +000018 if (final_spin)
19 __kmp_wait_template<kmp_flag_64, TRUE>(
20 this_thr, flag USE_ITT_BUILD_ARG(itt_sync_obj));
21 else
22 __kmp_wait_template<kmp_flag_64, FALSE>(
23 this_thr, flag USE_ITT_BUILD_ARG(itt_sync_obj));
Jim Cownie4cc4bb42014-10-07 16:25:50 +000024}
25
Jonathan Peyton30419822017-05-12 18:01:32 +000026void __kmp_release_64(kmp_flag_64 *flag) { __kmp_release_template(flag); }