summaryrefslogtreecommitdiff
path: root/lib/mempool.c
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-03-02 10:35:21 +0100
committerMaria Matejka <mq@ucw.cz>2022-03-02 12:13:49 +0100
commit48bf1322aa141ca6259b26b37551402758cff0cc (patch)
treeb900a58ac1356bf3724cfa226070ff97df3d52d5 /lib/mempool.c
parent2e8b8bfcc46ec1493f9e0efe9c796b88df85ada4 (diff)
Introducing an universal temporary linpool flushed after every task
Diffstat (limited to 'lib/mempool.c')
-rw-r--r--lib/mempool.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/mempool.c b/lib/mempool.c
index 90d7c774..169826d4 100644
--- a/lib/mempool.c
+++ b/lib/mempool.c
@@ -42,6 +42,8 @@ struct linpool {
uint chunk_size, threshold, total, total_large;
};
+_Thread_local linpool *tmp_linpool;
+
static void lp_free(resource *);
static void lp_dump(resource *);
static resource *lp_lookup(resource *, unsigned long);