| 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_tbbmalloc_internal_api_H |
| 18 | #define __TBB_tbbmalloc_internal_api_H |
| 19 | |
| 20 | #ifdef __cplusplus |
| 21 | extern "C" { |
| 22 | #endif /* __cplusplus */ |
| 23 | |
| 24 | typedef enum { |
| 25 | /* Tune usage of source included allocator. Selected value is large enough |
| 26 | to not intercept with constants from AllocationModeParam. */ |
| 27 | TBBMALLOC_INTERNAL_SOURCE_INCLUDED = 65536 |
| 28 | } AllocationModeInternalParam; |
| 29 | |
| 30 | void MallocInitializeITT(); |
| 31 | void __TBB_mallocProcessShutdownNotification(bool); |
| 32 | #if _WIN32||_WIN64 |
| 33 | void __TBB_mallocThreadShutdownNotification(); |
| 34 | #endif |
| 35 | |
| 36 | #ifdef __cplusplus |
| 37 | } /* extern "C" */ |
| 38 | #endif /* __cplusplus */ |
| 39 | |
| 40 | #endif /* __TBB_tbbmalloc_internal_api_H */ |
| 41 | |