Intel® OpenMP* Runtime Library
 All Classes Functions Variables Typedefs Enumerations Enumerator Groups Pages
kmp_wait_release.cpp
1 /*
2  * kmp_wait_release.cpp -- Wait/Release implementation
3  */
4 
5 /* <copyright>
6  Copyright (c) 1997-2015 Intel Corporation. All Rights Reserved.
7 
8  Redistribution and use in source and binary forms, with or without
9  modification, are permitted provided that the following conditions
10  are met:
11 
12  * Redistributions of source code must retain the above copyright
13  notice, this list of conditions and the following disclaimer.
14  * Redistributions in binary form must reproduce the above copyright
15  notice, this list of conditions and the following disclaimer in the
16  documentation and/or other materials provided with the distribution.
17  * Neither the name of Intel Corporation nor the names of its
18  contributors may be used to endorse or promote products derived
19  from this software without specific prior written permission.
20 
21  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25  HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 
33 </copyright> */
34 #include "kmp_wait_release.h"
35 
36 void __kmp_wait_32(kmp_info_t *this_thr, kmp_flag_32 *flag, int final_spin
37  USE_ITT_BUILD_ARG(void * itt_sync_obj) )
38 {
39  __kmp_wait_template(this_thr, flag, final_spin
40  USE_ITT_BUILD_ARG(itt_sync_obj) );
41 }
42 
43 void __kmp_wait_64(kmp_info_t *this_thr, kmp_flag_64 *flag, int final_spin
44  USE_ITT_BUILD_ARG(void * itt_sync_obj) )
45 {
46  __kmp_wait_template(this_thr, flag, final_spin
47  USE_ITT_BUILD_ARG(itt_sync_obj) );
48 }
49 
50 void __kmp_wait_oncore(kmp_info_t *this_thr, kmp_flag_oncore *flag, int final_spin
51  USE_ITT_BUILD_ARG(void * itt_sync_obj) )
52 {
53  __kmp_wait_template(this_thr, flag, final_spin
54  USE_ITT_BUILD_ARG(itt_sync_obj) );
55 }
56 void __kmp_release_32(kmp_flag_32 *flag) {
57  __kmp_release_template(flag);
58 }
59 
60 void __kmp_release_64(kmp_flag_64 *flag) {
61  __kmp_release_template(flag);
62 }
63 
64 void __kmp_release_oncore(kmp_flag_oncore *flag) {
65  __kmp_release_template(flag);
66 }