Update comments

This commit is contained in:
Patrick Pelissier committed 2024-03-26 22:47:13 +01:00
1 parent 7575681e27
commit 7bf9f6a377
1 file changed
+1
+1
View File
@@ -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; \