AddRef increases the ref count on this store
()
| 275 | |
| 276 | // AddRef increases the ref count on this store |
| 277 | func (s *Store) AddRef() { |
| 278 | s.m.Lock() |
| 279 | s.refs++ |
| 280 | s.m.Unlock() |
| 281 | } |
| 282 | |
| 283 | // Close decreases the ref count on this store, and if the count is 0 |
| 284 | // proceeds to actually close the store. |