Intel® OpenMP* Runtime Library
 All Classes Functions Variables Typedefs Enumerations Enumerator Groups Pages
kmp_error.h
1 /*
2  * kmp_error.h -- PTS functions for error checking at runtime.
3  * $Revision: 42061 $
4  * $Date: 2013-02-28 16:36:24 -0600 (Thu, 28 Feb 2013) $
5  */
6 
7 /* <copyright>
8  Copyright (c) 1997-2013 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 
37 #ifndef KMP_ERROR_H
38 #define KMP_ERROR_H
39 
40 #include "kmp_i18n.h"
41 
42 /* ------------------------------------------------------------------------ */
43 #ifdef __cplusplus
44  extern "C" {
45 #endif
46 
47 void __kmp_error_construct( kmp_i18n_id_t id, enum cons_type ct, ident_t const * ident );
48 void __kmp_error_construct2( kmp_i18n_id_t id, enum cons_type ct, ident_t const * ident, struct cons_data const * cons );
49 
50 struct cons_header * __kmp_allocate_cons_stack( int gtid );
51 void __kmp_free_cons_stack( void * ptr );
52 
53 void __kmp_push_parallel( int gtid, ident_t const * ident );
54 void __kmp_push_workshare( int gtid, enum cons_type ct, ident_t const * ident );
55 void __kmp_push_sync( int gtid, enum cons_type ct, ident_t const * ident, kmp_user_lock_p name );
56 
57 void __kmp_check_workshare( int gtid, enum cons_type ct, ident_t const * ident );
58 void __kmp_check_sync( int gtid, enum cons_type ct, ident_t const * ident, kmp_user_lock_p name );
59 
60 void __kmp_pop_parallel( int gtid, ident_t const * ident );
61 enum cons_type __kmp_pop_workshare( int gtid, enum cons_type ct, ident_t const * ident );
62 void __kmp_pop_sync( int gtid, enum cons_type ct, ident_t const * ident );
63 void __kmp_check_barrier( int gtid, enum cons_type ct, ident_t const * ident );
64 
65 #ifdef __cplusplus
66  } // extern "C"
67 #endif
68 
69 #endif // KMP_ERROR_H
70 
Definition: kmp.h:200