provide access to underlying file handle

This commit is contained in:
Andrew Harding
2018-07-18 18:31:12 -06:00
parent 67921128fb
commit 43ad592ec1
+4
View File
@@ -265,6 +265,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()