From 89582e33df772c4dfc597681fd1085a98e7a5ba0 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Sun, 24 Nov 2024 22:07:41 +0200 Subject: [PATCH] Updated Instance Allocation (markdown) --- Instance Allocation.md => Instance-Allocation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename Instance Allocation.md => Instance-Allocation.md (96%) diff --git a/Instance Allocation.md b/Instance-Allocation.md similarity index 96% rename from Instance Allocation.md rename to Instance-Allocation.md index 125772f..6f829dd 100644 --- a/Instance Allocation.md +++ b/Instance-Allocation.md @@ -42,7 +42,7 @@ my_custom_free(gb); ``` Using `GB_allocation_size` you can obtain the required buffer size for an instance, which can then be used to allocate a buffer for it using any arbitrary allocation method. -Additionally, `GB_is_inited` will return `true` if a [[GB_gameboy_t]] instance is initialized in a given buffer. If an instance is allocated in such before, it must be first freed with `GB_free` or `GB_alloc` before being deallocated. +Additionally, `GB_is_inited` will return `true` if a [[GB_gameboy_t]] instance is initialized in a given buffer. If an instance is allocated in such before, it must be first freed with `GB_free` or `GB_dealloc` before being deallocated. ## Thread Safety `GB_free` and `GB_dealloc` must not be called if the instance is being run in any thread, including the current one (via a callback).