unfinished work

This commit is contained in:
liuwentan
2023-02-03 17:28:14 +08:00
parent cca7d882e1
commit 57f0a0581a
45 changed files with 2338 additions and 1522 deletions

View File

@@ -8,13 +8,13 @@
***********************************************************************************************
*/
#include "utils.h"
#include <time.h>
#include <stdlib.h>
#include <sys/queue.h>
#include <assert.h>
#include "maat_utils.h"
struct maat_garbage_bag {
time_t create_time;
int timeout;
@@ -60,7 +60,8 @@ size_t maat_garbage_bin_get_size(struct maat_garbage_bin* bin)
return bin->bag_cnt;
}
void maat_garbage_bagging(struct maat_garbage_bin* bin, void* garbage, void (* func)(void *))
void maat_garbage_bagging(struct maat_garbage_bin* bin, void* garbage,
void (* func)(void *))
{
struct maat_garbage_bag *bag = ALLOC(struct maat_garbage_bag, 1);