aboutsummaryrefslogtreecommitdiff
path: root/src/string.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-07-27 23:14:01 +0100
committergingerBill <bill@gingerbill.org>2021-07-27 23:14:01 +0100
commita5d6fda4338641a64d07b353129e5731a6517941 (patch)
tree0cce749ad561e7a27b3c5eb0d6443f3d58a6df34 /src/string.cpp
parent4bc3796f9b9e8ea00ff0da89f6e983345fb2fd7e (diff)
Define which mutexes are blocking and recursive explicitly
Diffstat (limited to 'src/string.cpp')
-rw-r--r--src/string.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/string.cpp b/src/string.cpp
index 9cb5933e0..4e8273f60 100644
--- a/src/string.cpp
+++ b/src/string.cpp
@@ -1,12 +1,12 @@
-gb_global gbArena string_buffer_arena = {};
-gb_global gbAllocator string_buffer_allocator = {};
-gb_global gbMutex string_buffer_mutex = {};
+gb_global gbArena string_buffer_arena = {};
+gb_global gbAllocator string_buffer_allocator = {};
+gb_global BlockingMutex string_buffer_mutex = {};
void init_string_buffer_memory(void) {
// NOTE(bill): This should be enough memory for file systems
gb_arena_init_from_allocator(&string_buffer_arena, heap_allocator(), gb_megabytes(1));
string_buffer_allocator = gb_arena_allocator(&string_buffer_arena);
- gb_mutex_init(&string_buffer_mutex);
+ mutex_init(&string_buffer_mutex);
}