OnAfterClose registers event callback func's that are invoked after the file is closed.
(cb func())
| 65 | // OnAfterClose registers event callback func's that are invoked after the |
| 66 | // file is closed. |
| 67 | func (r *FileRef) OnAfterClose(cb func()) { |
| 68 | r.m.Lock() |
| 69 | r.afterCloseCallbacks = append(r.afterCloseCallbacks, cb) |
| 70 | r.m.Unlock() |
| 71 | } |
| 72 | |
| 73 | // AddRef increases the ref-count on the file ref. |
| 74 | func (r *FileRef) AddRef() File { |
no outgoing calls