From: Chris Howey Date: Thu, 7 Feb 2013 03:43:44 +0000 (-0600) Subject: Mutex used on all OSs X-Git-Tag: v1.7.2~383 X-Git-Url: https://go.fuhry.dev/?a=commitdiff_plain;h=00498bfcf4cc34426ca0f503a9a8f2cdcb8aa262;p=fsnotify.git Mutex used on all OSs --- diff --git a/fsnotify_windows.go b/fsnotify_windows.go index a2768d1..e79185f 100644 --- a/fsnotify_windows.go +++ b/fsnotify_windows.go @@ -85,6 +85,7 @@ type Watcher struct { port syscall.Handle // Handle to completion port watches watchMap // Map of watches (key: i-number) fsnFlags map[string]uint32 // Map of watched files to flags used for filter + fsnmut sync.Mutex // Protects access to fsnFlags. input chan *input // Inputs to the reader are sent on this channel internalEvent chan *FileEvent // Events are queued on this channel Event chan *FileEvent // Events are returned on this channel