summaryrefslogtreecommitdiff
path: root/source/kit/shared_mutex.h
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2024-02-29 00:51:42 +0100
committerMitya Selivanov <automainint@guattari.tech>2024-02-29 00:51:42 +0100
commit2dab66694bb72ee222a44c49c669e9f5adc024f0 (patch)
tree53e89f2cdab40292801da8fe8fb0a511d39377bb /source/kit/shared_mutex.h
parent0948d02a5a3abae918fa8f5fe1587e19cd0ada41 (diff)
downloadsaw-2dab66694bb72ee222a44c49c669e9f5adc024f0.zip
Load audio file with miniaudio instead of dr_libs; Fix null dereference when loading empty sampler
Diffstat (limited to 'source/kit/shared_mutex.h')
-rw-r--r--source/kit/shared_mutex.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/kit/shared_mutex.h b/source/kit/shared_mutex.h
index d202090..ad83418 100644
--- a/source/kit/shared_mutex.h
+++ b/source/kit/shared_mutex.h
@@ -47,7 +47,7 @@ static void kit_shared_mutex_init(kit_shared_mutex_t *m) {
memory_order_relaxed);
}
-static i8 kit_shared_try_lock(kit_shared_mutex_t *m) {
+static b8 kit_shared_try_lock(kit_shared_mutex_t *m) {
assert(m != NULL);
for (;;) {
@@ -108,7 +108,7 @@ static void kit_shared_unlock(kit_shared_mutex_t *m) {
assert(0);
}
-static i8 kit_unique_try_lock(kit_shared_mutex_t *m) {
+static b8 kit_unique_try_lock(kit_shared_mutex_t *m) {
assert(m != NULL);
i8 prev_state = KIT_SHARED_MUTEX_READY;