projects
/
vg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09974f2
)
aync buffer
author
hgn
<hgodden00@gmail.com>
Sun, 23 Apr 2023 06:31:09 +0000
(07:31 +0100)
committer
hgn
<hgodden00@gmail.com>
Sun, 23 Apr 2023 06:31:09 +0000
(07:31 +0100)
vg_mem.h
patch
|
blob
|
history
diff --git
a/vg_mem.h
b/vg_mem.h
index 49d9e37e86b8af8d515a64a164d64873e6d6f59f..8f3da6361396d97577c1334e401bf1b251462206 100644
(file)
--- 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 */