SnapshotWrapper implements the moss.Snapshot interface.
| 15 | |
| 16 | // SnapshotWrapper implements the moss.Snapshot interface. |
| 17 | type SnapshotWrapper struct { |
| 18 | m sync.Mutex |
| 19 | refCount uint64 |
| 20 | ss Snapshot |
| 21 | closer io.Closer // Optional, may be nil. |
| 22 | } |
| 23 | |
| 24 | // NewSnapshotWrapper creates a wrapper which provides ref-counting |
| 25 | // around a snapshot. The snapshot (and an optional io.Closer) will |
nothing calls this directly
no outgoing calls
no test coverage detected