vendor: try macos fs notify runloop fix from @fjl

This commit is contained in:
Péter Szilágyi 2018-01-03 12:44:53 +02:00
parent f0dc267450
commit 0d4ad7709a
No known key found for this signature in database
GPG key ID: E9AE538CEDF8293D
2 changed files with 8 additions and 3 deletions

View file

@ -26,6 +26,7 @@ import "C"
import (
"errors"
"os"
"runtime"
"sync"
"sync/atomic"
"time"
@ -63,6 +64,10 @@ var (
func init() {
wg.Add(1)
go func() {
// There is exactly one run loop per thread. Lock this goroutine to its
// thread to ensure that it's not rescheduled on a different thread while
// setting up the run loop.
runtime.LockOSThread()
runloop = C.CFRunLoopGetCurrent()
C.CFRunLoopAddSource(runloop, source, C.kCFRunLoopDefaultMode)
C.CFRunLoopRun()

6
vendor/vendor.json vendored
View file

@ -286,10 +286,10 @@
"revisionTime": "2016-11-28T21:05:44Z"
},
{
"checksumSHA1": "tnQdt7bxmueZFl0EPrW9YrWiqGg=",
"checksumSHA1": "lhq+IT6eusmK2Ortmhen0qT3wJM=",
"path": "github.com/rjeczalik/notify",
"revision": "e1801ee34d54c4bf45126ef51fe9750b4e42bee8",
"revisionTime": "2017-12-10T15:45:11Z"
"revision": "b76ef5c8085eae5170c0b1e3abbd94e41e086bfb",
"revisionTime": "2018-01-03T10:29:26Z"
},
{
"checksumSHA1": "5uqO4ITTDMklKi3uNaE/D9LQ5nM=",