From 0afad9a8251b572564c6b870f11a98c311d63a07 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Thu, 15 Feb 2018 22:34:36 +0100 Subject: [PATCH] Update comments. --- m-snapshot.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/m-snapshot.h b/m-snapshot.h index ba5848ca..f19b7ee0 100644 --- a/m-snapshot.h +++ b/m-snapshot.h @@ -196,7 +196,8 @@ nextFlags = SNAPSHOTI_FLAG(SNAPSHOTI_R(origFlags), \ SNAPSHOTI_F(origFlags), \ SNAPSHOTI_W(origFlags), 1); \ - /* FIXME: Is exponential backoff really needed ? */ \ + /* exponential backoff is not needed as there can't be more \ + than 2 threads which try to update the data. */ \ } while (!atomic_compare_exchange_weak (&snap->flags, &origFlags, \ nextFlags)); \ /* Return new write buffer for new updating */ \ @@ -218,7 +219,8 @@ nextFlags = SNAPSHOTI_FLAG(SNAPSHOTI_F(origFlags), \ SNAPSHOTI_W(origFlags), \ SNAPSHOTI_R(origFlags), 0); \ - /* FIXME: Is exponential backoff really needed ? */ \ + /* exponential backoff is not needed as there can't be more \ + than 2 threads which try to update the data. */ \ } while (!atomic_compare_exchange_weak (&snap->flags, &origFlags, \ nextFlags)); \ /* Return current read buffer */ \