runtime_loader.h
Go to the documentation of this file.
/*
Copyright (c) 2005-2020 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#include "internal/_deprecated_header_message_guard.h"
#if !defined(__TBB_show_deprecation_message_runtime_loader_H) && defined(__TBB_show_deprecated_header_message)
#define __TBB_show_deprecation_message_runtime_loader_H
#pragma message("TBB Warning: tbb/runtime_loader.h is deprecated. For details, please see Deprecated Features appendix in the TBB reference manual.")
#endif
#if defined(__TBB_show_deprecated_header_message)
#undef __TBB_show_deprecated_header_message
#endif
#ifndef __TBB_runtime_loader_H
#define __TBB_runtime_loader_H
#define __TBB_runtime_loader_H_include_area
#include "internal/_warning_suppress_enable_notice.h"
#if ! TBB_PREVIEW_RUNTIME_LOADER
#error Set TBB_PREVIEW_RUNTIME_LOADER to include runtime_loader.h
#endif
#include "tbb_stddef.h"
#include <climits>
#if _MSC_VER
#if ! __TBB_NO_IMPLICIT_LINKAGE
#ifdef _DEBUG
#pragma comment( linker, "/nodefaultlib:tbb_debug.lib" )
#pragma comment( linker, "/defaultlib:tbbproxy_debug.lib" )
#else
#pragma comment( linker, "/nodefaultlib:tbb.lib" )
#pragma comment( linker, "/defaultlib:tbbproxy.lib" )
#endif
#endif
#endif
namespace tbb {
namespace interface6 {
class __TBB_DEPRECATED_IN_VERBOSE_MODE runtime_loader : tbb::internal::no_copy {
public:
enum error_mode {
em_status,
em_throw,
em_abort
}; // error_mode
enum error_code {
ec_ok,
ec_bad_call,
ec_bad_arg,
ec_bad_lib,
ec_bad_ver,
ec_no_lib
}; // error_code
runtime_loader( error_mode mode = em_abort );
runtime_loader(
char const * path[],
int min_ver = TBB_INTERFACE_VERSION,
int max_ver = INT_MAX,
error_mode mode = em_abort
);
~runtime_loader();
error_code
load(
char const * path[],
int min_ver = TBB_INTERFACE_VERSION,
int max_ver = INT_MAX
);
error_code status();
private:
error_mode const my_mode;
error_code my_status;
bool my_loaded;
}; // class runtime_loader
} // namespace interface6
using interface6::runtime_loader;
} // namespace tbb
#include "internal/_warning_suppress_disable_notice.h"
#undef __TBB_runtime_loader_H_include_area
#endif /* __TBB_runtime_loader_H */
_deprecated_header_message_guard.h
_warning_suppress_disable_notice.h
_warning_suppress_enable_notice.h
__TBB_DEPRECATED_IN_VERBOSE_MODE
#define __TBB_DEPRECATED_IN_VERBOSE_MODE
Definition: tbb_config.h:648
tbb_stddef.h
TBB_INTERFACE_VERSION
#define TBB_INTERFACE_VERSION
Definition: tbb_stddef.h:25
path
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 unsigned int void size_t ITT_FORMAT d void ITT_FORMAT p void ITT_FORMAT p __itt_model_site __itt_model_site_instance ITT_FORMAT p __itt_model_task __itt_model_task_instance ITT_FORMAT p void ITT_FORMAT p void ITT_FORMAT p void size_t ITT_FORMAT d void ITT_FORMAT p const wchar_t ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s no args void ITT_FORMAT p size_t ITT_FORMAT d no args const wchar_t const wchar_t ITT_FORMAT s __itt_heap_function void size_t int ITT_FORMAT d __itt_heap_function void ITT_FORMAT p __itt_heap_function void void size_t int ITT_FORMAT d no args no args unsigned int ITT_FORMAT u const __itt_domain __itt_id ITT_FORMAT lu const __itt_domain __itt_id __itt_id __itt_string_handle ITT_FORMAT p const __itt_domain __itt_id ITT_FORMAT p const __itt_domain __itt_id __itt_timestamp __itt_timestamp ITT_FORMAT lu const __itt_domain __itt_id __itt_id __itt_string_handle ITT_FORMAT p const __itt_domain ITT_FORMAT p const __itt_domain __itt_string_handle unsigned long long ITT_FORMAT lu const __itt_domain __itt_string_handle unsigned long long ITT_FORMAT lu const __itt_domain __itt_id __itt_string_handle __itt_metadata_type size_t void ITT_FORMAT p const __itt_domain __itt_id __itt_string_handle const wchar_t size_t ITT_FORMAT lu const __itt_domain __itt_id __itt_relation __itt_id ITT_FORMAT p const wchar_t int ITT_FORMAT __itt_group_mark d __itt_event ITT_FORMAT __itt_group_mark d void const wchar_t const wchar_t int ITT_FORMAT __itt_group_sync __itt_group_fsync x void const wchar_t int const wchar_t int int ITT_FORMAT __itt_group_sync __itt_group_fsync x void ITT_FORMAT __itt_group_sync __itt_group_fsync p void ITT_FORMAT __itt_group_sync __itt_group_fsync p void size_t ITT_FORMAT lu no args __itt_obj_prop_t __itt_obj_state_t ITT_FORMAT d const char ITT_FORMAT s const char ITT_FORMAT s __itt_frame ITT_FORMAT p __itt_counter ITT_FORMAT p __itt_counter unsigned long long ITT_FORMAT lu __itt_counter unsigned long long ITT_FORMAT lu __itt_counter __itt_clock_domain unsigned long long void ITT_FORMAT p const wchar_t ITT_FORMAT S __itt_mark_type const wchar_t ITT_FORMAT S __itt_mark_type const char ITT_FORMAT s __itt_mark_type ITT_FORMAT d __itt_caller ITT_FORMAT p __itt_caller ITT_FORMAT p no args const __itt_domain __itt_clock_domain unsigned long long __itt_id ITT_FORMAT lu const __itt_domain __itt_clock_domain unsigned long long __itt_id __itt_id void ITT_FORMAT p const __itt_domain __itt_id __itt_id __itt_string_handle ITT_FORMAT p const __itt_domain __itt_id ITT_FORMAT lu const __itt_domain __itt_clock_domain unsigned long long __itt_id __itt_string_handle __itt_scope ITT_FORMAT d const __itt_domain __itt_scope __itt_string_handle const char size_t ITT_FORMAT lu const __itt_domain __itt_clock_domain unsigned long long __itt_relation __itt_id ITT_FORMAT lu __itt_track_group __itt_string_handle __itt_track_group_type ITT_FORMAT d __itt_track ITT_FORMAT p void int const int int const char int ITT_FORMAT d void void const char * path
Definition: ittnotify_static.h:346
mode
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
Definition: ittnotify_static.h:109
tbb
The graph class.
Definition: serial/tbb/parallel_for.h:46
tbb::interface6::runtime_loader
Load TBB at runtime.
Definition: runtime_loader.h:95
tbb::interface6::runtime_loader::my_mode
error_mode const my_mode
Definition: runtime_loader.h:177
tbb::interface6::runtime_loader::error_code
error_code
Error codes.
Definition: runtime_loader.h:107
tbb::interface6::runtime_loader::ec_bad_call
@ ec_bad_call
Invalid function call (e. g. load() called when TBB is already loaded).
Definition: runtime_loader.h:109
tbb::interface6::runtime_loader::ec_bad_lib
@ ec_bad_lib
Invalid library found (e. g. TBB_runtime_version symbol not found).
Definition: runtime_loader.h:111
tbb::interface6::runtime_loader::ec_bad_ver
@ ec_bad_ver
TBB found but version is not suitable.
Definition: runtime_loader.h:112
tbb::interface6::runtime_loader::ec_ok
@ ec_ok
No errors.
Definition: runtime_loader.h:108
tbb::interface6::runtime_loader::ec_bad_arg
@ ec_bad_arg
Invalid argument passed.
Definition: runtime_loader.h:110
tbb::interface6::runtime_loader::runtime_loader
runtime_loader(error_mode mode=em_abort)
Initialize object but do not load TBB.
tbb::interface6::runtime_loader::runtime_loader
runtime_loader(char const *path[], int min_ver=TBB_INTERFACE_VERSION, int max_ver=INT_MAX, error_mode mode=em_abort)
Initialize object and load TBB.
tbb::interface6::runtime_loader::status
error_code status()
Report status.
tbb::interface6::runtime_loader::my_loaded
bool my_loaded
Definition: runtime_loader.h:179
tbb::interface6::runtime_loader::~runtime_loader
~runtime_loader()
Destroy object.
tbb::interface6::runtime_loader::my_status
error_code my_status
Definition: runtime_loader.h:178
tbb::interface6::runtime_loader::error_mode
error_mode
Error mode constants.
Definition: runtime_loader.h:100
tbb::interface6::runtime_loader::em_throw
@ em_throw
Throw an exception of tbb::runtime_loader::error_code type.
Definition: runtime_loader.h:102
tbb::interface6::runtime_loader::em_status
@ em_status
Save status of operation and continue.
Definition: runtime_loader.h:101
tbb::interface6::runtime_loader::load
error_code load(char const *path[], int min_ver=TBB_INTERFACE_VERSION, int max_ver=INT_MAX)
Load TBB.
tbb::internal::no_copy
Base class for types that should not be copied or assigned.
Definition: tbb_stddef.h:330

Copyright © 2005-2020 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.