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 | #include "../include/rml_tbb.h" |
18 | #include "tbb/dynamic_link.h" |
19 | #include <assert.h> |
20 | |
21 | namespace tbb { |
22 | namespace internal { |
23 | namespace rml { |
24 | |
25 | #define MAKE_SERVER(x) DLD(__TBB_make_rml_server,x) |
26 | #define GET_INFO(x) DLD(__TBB_call_with_my_server_info,x) |
27 | #define SERVER tbb_server |
28 | #define CLIENT tbb_client |
29 | #define FACTORY tbb_factory |
30 | |
31 | #if __TBB_WEAK_SYMBOLS_PRESENT |
32 | #pragma weak __TBB_make_rml_server |
33 | #pragma weak __TBB_call_with_my_server_info |
34 | extern "C" { |
35 | ::rml::factory::status_type __TBB_make_rml_server( tbb::internal::rml::tbb_factory& f, tbb::internal::rml::tbb_server*& server, tbb::internal::rml::tbb_client& client ); |
36 | void __TBB_call_with_my_server_info( ::rml::server_info_callback_t cb, void* arg ); |
37 | } |
38 | #endif /* __TBB_WEAK_SYMBOLS_PRESENT */ |
39 | |
40 | #include "rml_factory.h" |
41 | |
42 | } // rml |
43 | } // internal |
44 | } // tbb |
45 | |