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