From 82b159e097fc6d2c03cbb82705994320df962b09 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Sat, 19 Aug 2017 12:19:30 +0200 Subject: [PATCH] Add TODO --- m-snapshot.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/m-snapshot.h b/m-snapshot.h index 0518a6df..ac4feb44 100644 --- a/m-snapshot.h +++ b/m-snapshot.h @@ -178,6 +178,7 @@ nextFlags = SNAPSHOTI_FLAG(SNAPSHOTI_R(origFlags), \ SNAPSHOTI_F(origFlags), \ SNAPSHOTI_W(origFlags), 1); \ + /* TODO: exponential backoff */ \ } while (!atomic_compare_exchange_weak (&snap->flags, &origFlags, \ nextFlags)); \ return &snap->data[SNAPSHOTI_W(nextFlags)]; \ @@ -193,6 +194,7 @@ nextFlags = SNAPSHOTI_FLAG(SNAPSHOTI_F(origFlags), \ SNAPSHOTI_W(origFlags), \ SNAPSHOTI_R(origFlags), 0); \ + /* TODO: exponential backoff */ \ } while (!atomic_compare_exchange_weak (&snap->flags, &origFlags, \ nextFlags)); \ nextFlags = atomic_load(&snap->flags); \