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 #ifndef __TBB_runtime_loader_H
18 #define __TBB_runtime_loader_H
19 
20 #if ! TBB_PREVIEW_RUNTIME_LOADER
21  #error Set TBB_PREVIEW_RUNTIME_LOADER to include runtime_loader.h
22 #endif
23 
24 #include "tbb_stddef.h"
25 #include <climits>
26 
27 #if _MSC_VER
28  #if ! __TBB_NO_IMPLICIT_LINKAGE
29  #ifdef _DEBUG
30  #pragma comment( linker, "/nodefaultlib:tbb_debug.lib" )
31  #pragma comment( linker, "/defaultlib:tbbproxy_debug.lib" )
32  #else
33  #pragma comment( linker, "/nodefaultlib:tbb.lib" )
34  #pragma comment( linker, "/defaultlib:tbbproxy.lib" )
35  #endif
36  #endif
37 #endif
38 
39 namespace tbb {
40 
41 namespace interface6 {
42 
44 
82 
83  public:
84 
86  enum error_mode {
90  }; // error_mode
91 
93  enum error_code {
100  }; // error_code
101 
104 
106 
112  char const * path[],
113  int min_ver = TBB_INTERFACE_VERSION,
114  int max_ver = INT_MAX,
116  );
117 
119  ~runtime_loader();
120 
122 
146  error_code
147  load(
148  char const * path[],
149  int min_ver = TBB_INTERFACE_VERSION,
150  int max_ver = INT_MAX
151 
152  );
153 
154 
156 
159  error_code status();
160 
161  private:
162 
165  bool my_loaded;
166 
167 }; // class runtime_loader
168 
169 } // namespace interface6
170 
172 
173 } // namespace tbb
174 
175 #endif /* __TBB_runtime_loader_H */
176 
No suitable TBB library found.
error_code status()
Report status.
Invalid library found (e. g. TBB_runtime_version symbol not found).
Save status of operation and continue.
The graph class.
Throw an exception of tbb::runtime_loader::error_code type.
Print message to stderr and call abort().
Base class for types that should not be copied or assigned.
Definition: tbb_stddef.h:331
~runtime_loader()
Destroy object.
error_mode
Error mode constants.
runtime_loader(error_mode mode=em_abort)
Initialize object but do not load TBB.
#define TBB_INTERFACE_VERSION
Definition: tbb_stddef.h:25
Invalid function call (e. g. load() called when TBB is already loaded).
TBB found but version is not suitable.
error_code load(char const *path[], int min_ver=TBB_INTERFACE_VERSION, int max_ver=INT_MAX)
Load TBB.
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

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.