This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
tango-maat/src/inc_internal/maat_garbage_collection.h
2023-01-31 20:39:53 +08:00

39 lines
1022 B
C

/*
**********************************************************************************************
* File: maat_garbage_collection.h
* Description: maat gc
* Authors: Zhengchao <zhengchao@geedgenetworks.com>
* Date: 2022-10-31
* Copyright: (c) 2018-2022 Geedge Networks, Inc. All rights reserved.
***********************************************************************************************
*/
#ifndef _MAAT_GARBAGE_COLLECTION_H_
#define _MAAT_GARBAGE_COLLECTION_H_
#ifdef __cpluscplus
extern "C"
{
#endif
#include <stddef.h>
struct maat_garbage_bin;
struct maat_garbage_bin *maat_garbage_bin_new(int default_timeout);
void maat_garbage_bin_free(struct maat_garbage_bin *bin);
void maat_garbage_bagging(struct maat_garbage_bin *bin, void *garbage, void (* func)(void *));
void maat_garbage_collect_routine(struct maat_garbage_bin *bin);
size_t maat_garbage_bin_get_size(struct maat_garbage_bin *bin);
void maat_garbage_collect_by_force(struct maat_garbage_bin *bin);
#ifdef __cpluscplus
}
#endif
#endif