Intel(R) Threading Building Blocks Doxygen Documentation  version 4.2.3
runtime_loader.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2005-2019 Intel Corporation
3 
4  Licensed under the Apache License, Version 2.0 (the "License");
5  you may not use this file except in compliance with the License.
6  You may obtain a copy of the License at
7 
8  http://www.apache.org/licenses/LICENSE-2.0
9 
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15 
16 
17 
18 
19 */
20 
21 #ifndef __TBB_runtime_loader_H
22 #define __TBB_runtime_loader_H
23 
24 #if ! TBB_PREVIEW_RUNTIME_LOADER
25  #error Set TBB_PREVIEW_RUNTIME_LOADER to include runtime_loader.h
26 #endif
27 
28 #include "tbb_stddef.h"
29 #include <climits>
30 
31 #if _MSC_VER
32  #if ! __TBB_NO_IMPLICIT_LINKAGE
33  #ifdef _DEBUG
34  #pragma comment( linker, "/nodefaultlib:tbb_debug.lib" )
35  #pragma comment( linker, "/defaultlib:tbbproxy_debug.lib" )
36  #else
37  #pragma comment( linker, "/nodefaultlib:tbb.lib" )
38  #pragma comment( linker, "/defaultlib:tbbproxy.lib" )
39  #endif
40  #endif
41 #endif
42 
43 namespace tbb {
44 
45 namespace interface6 {
46 
48 
86 
87  public:
88 
90  enum error_mode {
94  }; // error_mode
95 
97  enum error_code {
104  }; // error_code
105 
108 
110 
116  char const * path[],
117  int min_ver = TBB_INTERFACE_VERSION,
118  int max_ver = INT_MAX,
120  );
121 
123  ~runtime_loader();
124 
126 
150  error_code
151  load(
152  char const * path[],
153  int min_ver = TBB_INTERFACE_VERSION,
154  int max_ver = INT_MAX
155 
156  );
157 
158 
160 
163  error_code status();
164 
165  private:
166 
169  bool my_loaded;
170 
171 }; // class runtime_loader
172 
173 } // namespace interface6
174 
176 
177 } // namespace tbb
178 
179 #endif /* __TBB_runtime_loader_H */
180 
error_code status()
Report status.
Base class for types that should not be copied or assigned.
Definition: tbb_stddef.h:335
void const char const char int ITT_FORMAT __itt_group_sync x void const char ITT_FORMAT __itt_group_sync s void ITT_FORMAT __itt_group_sync p void ITT_FORMAT p void ITT_FORMAT p no args __itt_suppress_mode_t mode
Invalid function call (e. g. load() called when TBB is already loaded).
error_mode
Error mode constants.
Save status of operation and continue.
The graph class.
~runtime_loader()
Destroy object.
runtime_loader(error_mode mode=em_abort)
Initialize object but do not load TBB.
Print message to stderr and call abort().
No suitable TBB library found.
#define TBB_INTERFACE_VERSION
Definition: tbb_stddef.h:29
Throw an exception of tbb::runtime_loader::error_code type.
Invalid library found (e. g. TBB_runtime_version symbol not found).
error_code load(char const *path[], int min_ver=TBB_INTERFACE_VERSION, int max_ver=INT_MAX)
Load TBB.
TBB found but version is not suitable.

Copyright © 2005-2019 Intel Corporation. All Rights Reserved.

Intel, Pentium, Intel Xeon, Itanium, Intel XScale and VTune are registered trademarks or trademarks of Intel Corporation or its subsidiaries in the United States and other countries.

* Other names and brands may be claimed as the property of others.