LLVM OpenMP* Runtime Library
kmp_wait_release.cpp
1 /*
2  * kmp_wait_release.cpp -- Wait/Release implementation
3  */
4 
5 //===----------------------------------------------------------------------===//
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 
16 void __kmp_wait_64(kmp_info_t *this_thr, kmp_flag_64 *flag,
17  int final_spin USE_ITT_BUILD_ARG(void *itt_sync_obj)) {
18  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));
24 }
25 
26 void __kmp_release_64(kmp_flag_64 *flag) { __kmp_release_template(flag); }