Update comments.

This commit is contained in:
Patrick Pelissier committed 2018-02-15 22:34:36 +01:00
1 parent c99b3de902
commit 0afad9a825
1 file changed
+4 -2
+4 -2
View File
@@ -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 */ \