Blame include/memkind/internal/tbb_wrapper.h

Packit Service 7f3b24
// SPDX-License-Identifier: BSD-2-Clause
Packit Service 7f3b24
/* Copyright (C) 2017 - 2020 Intel Corporation. */
Packit 345191
Packit 345191
#pragma once
Packit 345191
#include <memkind.h>
Packit 345191
#include <memkind_deprecated.h>
Packit 345191
Packit 345191
#ifdef __cplusplus
Packit 345191
extern "C" {
Packit 345191
#endif
Packit 345191
Packit 345191
/* dynamically load TBB symbols */
Packit 345191
void load_tbb_symbols(void);
Packit 345191
Packit 345191
/* ops callbacks are replaced by TBB callbacks. */
Packit 345191
void tbb_initialize(struct memkind *kind);
Packit 345191
Packit 345191
/* ptr pointer must come from the valid TBB pool allocation */
Packit 345191
void tbb_pool_free_with_kind_detect(void *ptr);
Packit 345191
Packit 345191
/* ptr pointer must come from the valid TBB pool allocation */
Packit 345191
void *tbb_pool_realloc_with_kind_detect(void *ptr, size_t size);
Packit 345191
Packit 345191
/* ptr pointer must come from the valid TBB pool allocation */
Packit 345191
size_t tbb_pool_malloc_usable_size_with_kind_detect(void *ptr);
Packit 345191
Packit 345191
/* ptr pointer must come from the valid TBB pool allocation */
Packit 345191
struct memkind *tbb_detect_kind(void *ptr);
Packit 345191
Packit 345191
/* update cached stats for TBB (unsupported) */
Packit 345191
int tbb_update_cached_stats(void);
Packit 345191
Packit 345191
/* get allocator stat for TBB (unsupported) */
Packit 345191
int tbb_get_global_stat(memkind_stat_type stat, size_t *value);
Packit 345191
Packit 345191
/* defrag reallocate for TBB (unsupported) */
Packit 345191
void *tbb_pool_defrag_reallocate_with_kind_detect(void *ptr);
Packit 345191
#ifdef __cplusplus
Packit 345191
}
Packit 345191
#endif