From 00498bfcf4cc34426ca0f503a9a8f2cdcb8aa262 Mon Sep 17 00:00:00 2001 From: Chris Howey Date: Wed, 6 Feb 2013 21:43:44 -0600 Subject: [PATCH] Mutex used on all OSs --- fsnotify_windows.go | 1 + 1 file changed, 1 insertion(+) 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 -- 2.50.1