mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-22 21:54:59 -07:00
Remove need for BlockingMutex in Arena
This commit is contained in:
+1
-3
@@ -878,10 +878,8 @@ gb_internal gb_inline bool is_ast_when_stmt(Ast *node) {
|
||||
return node->kind == Ast_WhenStmt;
|
||||
}
|
||||
|
||||
gb_global gb_thread_local Arena global_thread_local_ast_arena = {};
|
||||
|
||||
gb_internal gb_inline gbAllocator ast_allocator(AstFile *f) {
|
||||
return arena_allocator(&global_thread_local_ast_arena);
|
||||
return permanent_allocator();
|
||||
}
|
||||
|
||||
gb_internal Ast *alloc_ast_node(AstFile *f, AstKind kind);
|
||||
|
||||
Reference in New Issue
Block a user