Merge pull request #86 from azdagron/file-handle-access

provide access to underlying file handle
This commit is contained in:
John Starks
2019-05-16 09:56:58 -07:00
committed by GitHub
+4
View File
@@ -271,6 +271,10 @@ func (f *win32File) Flush() error {
return syscall.FlushFileBuffers(f.handle)
}
func (f *win32File) Fd() uintptr {
return uintptr(f.handle)
}
func (d *deadlineHandler) set(deadline time.Time) error {
d.setLock.Lock()
defer d.setLock.Unlock()