From: hgn Date: Sun, 23 Apr 2023 06:31:09 +0000 (+0100) Subject: aync buffer X-Git-Url: https://harrygodden.com/git/?a=commitdiff_plain;ds=inline;h=c23c34e2adabcca06ccd77caaee1fd0bed5b1317;p=vg.git aync buffer --- 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 */