From 7bf9f6a37779a86aa33fb4f6c49a863fa37ccf36 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Tue, 26 Mar 2024 22:47:13 +0100 Subject: [PATCH] Update comments --- m-concurrent.h | 1 + 1 file changed, 1 insertion(+) diff --git a/m-concurrent.h b/m-concurrent.h index ceb1b56b..3568e972 100644 --- a/m-concurrent.h +++ b/m-concurrent.h @@ -816,6 +816,7 @@ struct M_F(name, _s) *self = out->self; \ while (true) { \ unsigned int num = atomic_load(&self->num_reader); \ + /* FIXME: this lock is unfair for writers as readers may starve then */ \ if (num != 0 \ && atomic_compare_exchange_strong(&self->num_reader, &num, num+1)) { \ break; \