Added TODOs.
diff --git a/shared_writer.go b/shared_writer.go
index 7fc0f46..25ccbf9 100644
--- a/shared_writer.go
+++ b/shared_writer.go
@@ -7,7 +7,7 @@
type SharedWriter struct {
capacity int64
- gate int64
+ gate int64 // TODO: this will most likely need to be a cursor
shift uint8
committedSequences []int32
readerBarrier Barrier
@@ -55,7 +55,7 @@
return 0, Gating
}
- this.gate = min
+ this.gate = min // doesn't matter which write wins, BUT will most likely need to be a Cursor
}
if atomic.CompareAndSwapInt64(&this.writerCursor.value, previous, next) {