commit | 67baf6aaf3447a9f6d847f62be806487518510f4 | [log] [tgz] |
---|---|---|
author | Oliver, Jonathan <git@jonathanoliver.com> | Fri May 23 06:54:59 2014 -0600 |
committer | Oliver, Jonathan <git@jonathanoliver.com> | Fri May 23 06:54:59 2014 -0600 |
tree | 63f2c01c73cb84be4d84d4cc2e076495ddbe1844 | |
parent | a55ebe6f98452499a42a6ee2daac932bd814ff9b [diff] |
Simplifying internal structure.
diff --git a/writer.go b/writer.go index f4470a5..d601db4 100644 --- a/writer.go +++ b/writer.go
@@ -12,8 +12,8 @@ assertPowerOfTwo(capacity) return &Writer{ - previous: writerCursor.Load(), // show the Go runtime that the cursor is actually used - gate: writerCursor.Load(), // and that it should not be optimized away + previous: InitialSequenceValue, + gate: InitialSequenceValue, capacity: capacity, writerCursor: writerCursor, readerBarrier: readerBarrier,