From c23c34e2adabcca06ccd77caaee1fd0bed5b1317 Mon Sep 17 00:00:00 2001 From: hgn Date: Sun, 23 Apr 2023 07:31:09 +0100 Subject: [PATCH] aync buffer --- vg_mem.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vg_mem.h b/vg_mem.h index 49d9e37..8f3da63 100644 --- a/vg_mem.h +++ b/vg_mem.h @@ -19,7 +19,8 @@ typedef struct vg_allocation_meta vg_allocation_meta; struct { void *rtmemory, - *scratch; + *scratch, + *async; int use_libc_malloc; u32 quota; @@ -384,6 +385,9 @@ VG_STATIC void vg_alloc_quota(void) vg_mem.scratch = vg_create_linear_allocator( vg_mem.rtmemory, size_scratch, VG_MEMORY_SYSTEM ); + + vg_mem.async = vg_create_linear_allocator( NULL, 50*1024*1024, + VG_MEMORY_REALTIME ); } #endif /* VG_MEM_H */ -- 2.25.1