mirror of https://github.com/status-im/op-geth.git
vendor: update github.com/rjeczalik/notify (#15801)
This commit is contained in:
parent
b8caba9709
commit
b47285f1cf
|
@ -26,9 +26,9 @@ import "C"
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"os"
|
"os"
|
||||||
|
"runtime"
|
||||||
"sync"
|
"sync"
|
||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
"time"
|
|
||||||
"unsafe"
|
"unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -63,6 +63,10 @@ var (
|
||||||
func init() {
|
func init() {
|
||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
go func() {
|
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()
|
runloop = C.CFRunLoopGetCurrent()
|
||||||
C.CFRunLoopAddSource(runloop, source, C.kCFRunLoopDefaultMode)
|
C.CFRunLoopAddSource(runloop, source, C.kCFRunLoopDefaultMode)
|
||||||
C.CFRunLoopRun()
|
C.CFRunLoopRun()
|
||||||
|
@ -73,7 +77,6 @@ func init() {
|
||||||
|
|
||||||
//export gosource
|
//export gosource
|
||||||
func gosource(unsafe.Pointer) {
|
func gosource(unsafe.Pointer) {
|
||||||
time.Sleep(time.Second)
|
|
||||||
wg.Done()
|
wg.Done()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -286,10 +286,10 @@
|
||||||
"revisionTime": "2016-11-28T21:05:44Z"
|
"revisionTime": "2016-11-28T21:05:44Z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"checksumSHA1": "tnQdt7bxmueZFl0EPrW9YrWiqGg=",
|
"checksumSHA1": "1ESHllhZOIBg7MnlGHUdhz047bI=",
|
||||||
"path": "github.com/rjeczalik/notify",
|
"path": "github.com/rjeczalik/notify",
|
||||||
"revision": "e1801ee34d54c4bf45126ef51fe9750b4e42bee8",
|
"revision": "27b537f07230b3f917421af6dcf044038dbe57e2",
|
||||||
"revisionTime": "2017-12-10T15:45:11Z"
|
"revisionTime": "2018-01-03T13:19:05Z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"checksumSHA1": "5uqO4ITTDMklKi3uNaE/D9LQ5nM=",
|
"checksumSHA1": "5uqO4ITTDMklKi3uNaE/D9LQ5nM=",
|
||||||
|
|
Loading…
Reference in New Issue