1 /*
2     Copyright (c) 2005-2021 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_test_common_inject_scheduler_H
18 #define __TBB_test_common_inject_scheduler_H
19 
20 #if __TBB_TEST_DEFINE_PRIVATE_PUBLIC
21 // Include STL headers first to avoid errors
22 #include <string>
23 #include <algorithm>
24 #define private public
25 #define protected public
26 #endif // __TBB_TEST_DEFINE_PRIVATE_PUBLIC
27 
28 // #define __TBB_NO_IMPLICIT_LINKAGE 1 // TODO: check if we need this macro in Malloc or TBB
29 
30 #define __TBB_BUILD 1
31 
32 #define __TBB_SOURCE_DIRECTLY_INCLUDED 1
33 // TODO: uncomment scheduler source files and fix linkage errors
34 // #include "../../src/tbb/main.cpp"
35 #include "../../src/tbb/dynamic_link.cpp"
36 // #include "../../src/tbb/misc_ex.cpp"
37 
38 // Tasking subsystem files
39 // #include "../../src/tbb/governor.cpp"
40 // #include "../../src/tbb/market.cpp"
41 // #include "../../src/tbb/arena.cpp"
42 // #include "../../src/tbb/observer_proxy.cpp"
43 // #include "../../src/tbb/task.cpp"
44 // #include "../../src/tbb/task_group_context.cpp"
45 
46 // Other dependencies
47 // #include "../../src/tbb/private_server.cpp"
48 #include "../../src/tbb/concurrent_monitor.h"
49 #if _WIN32 || _WIN64
50 #include "../../src/tbb/semaphore.cpp"
51 #endif
52 #include "../../src/tbb/rml_tbb.cpp"
53 
54 #if __TBB_TEST_DEFINE_PRIVATE_PUBLIC
55 #undef protected
56 #undef private
57 #endif
58 
59 #endif // __TBB_test_common_inject_scheduler_H
60