Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
f236ac71
Commit
f236ac71
authored
Aug 28, 2018
by
Anton Evangelatov
Committed by
Péter Szilágyi
Aug 28, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vendor: github.com/rjeczalik/notify update to master (#17527)
parent
1acefafe
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
29 deletions
+6
-29
watcher_fsevents_cgo.go
vendor/github.com/rjeczalik/notify/watcher_fsevents_cgo.go
+3
-3
watcher_fsevents_go1.10.go
...or/github.com/rjeczalik/notify/watcher_fsevents_go1.10.go
+0
-14
watcher_fsevents_go1.11.go
...or/github.com/rjeczalik/notify/watcher_fsevents_go1.11.go
+0
-9
vendor.json
vendor/vendor.json
+3
-3
No files found.
vendor/github.com/rjeczalik/notify/watcher_fsevents_cgo.go
View file @
f236ac71
...
@@ -48,7 +48,7 @@ var wg sync.WaitGroup // used to wait until the runloop starts
...
@@ -48,7 +48,7 @@ var wg sync.WaitGroup // used to wait until the runloop starts
// started and is ready via the wg. It also serves purpose of a dummy source,
// started and is ready via the wg. It also serves purpose of a dummy source,
// thanks to it the runloop does not return as it also has at least one source
// thanks to it the runloop does not return as it also has at least one source
// registered.
// registered.
var
source
=
C
.
CFRunLoopSourceCreate
(
refZero
,
0
,
&
C
.
CFRunLoopSourceContext
{
var
source
=
C
.
CFRunLoopSourceCreate
(
C
.
kCFAllocatorDefault
,
0
,
&
C
.
CFRunLoopSourceContext
{
perform
:
(
C
.
CFRunLoopPerformCallBack
)(
C
.
gosource
),
perform
:
(
C
.
CFRunLoopPerformCallBack
)(
C
.
gosource
),
})
})
...
@@ -166,8 +166,8 @@ func (s *stream) Start() error {
...
@@ -166,8 +166,8 @@ func (s *stream) Start() error {
return
nil
return
nil
}
}
wg
.
Wait
()
wg
.
Wait
()
p
:=
C
.
CFStringCreateWithCStringNoCopy
(
refZero
,
C
.
CString
(
s
.
path
),
C
.
kCFStringEncodingUTF8
,
refZero
)
p
:=
C
.
CFStringCreateWithCStringNoCopy
(
C
.
kCFAllocatorDefault
,
C
.
CString
(
s
.
path
),
C
.
kCFStringEncodingUTF8
,
C
.
kCFAllocatorDefault
)
path
:=
C
.
CFArrayCreate
(
refZero
,
(
*
unsafe
.
Pointer
)(
unsafe
.
Pointer
(
&
p
)),
1
,
nil
)
path
:=
C
.
CFArrayCreate
(
C
.
kCFAllocatorDefault
,
(
*
unsafe
.
Pointer
)(
unsafe
.
Pointer
(
&
p
)),
1
,
nil
)
ctx
:=
C
.
FSEventStreamContext
{}
ctx
:=
C
.
FSEventStreamContext
{}
ref
:=
C
.
EventStreamCreate
(
&
ctx
,
C
.
uintptr_t
(
s
.
info
),
path
,
C
.
FSEventStreamEventId
(
atomic
.
LoadUint64
(
&
since
)),
latency
,
flags
)
ref
:=
C
.
EventStreamCreate
(
&
ctx
,
C
.
uintptr_t
(
s
.
info
),
path
,
C
.
FSEventStreamEventId
(
atomic
.
LoadUint64
(
&
since
)),
latency
,
flags
)
if
ref
==
nilstream
{
if
ref
==
nilstream
{
...
...
vendor/github.com/rjeczalik/notify/watcher_fsevents_go1.10.go
deleted
100644 → 0
View file @
1acefafe
// Copyright (c) 2018 The Notify Authors. All rights reserved.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
// +build darwin,!kqueue,cgo,!go1.11
package
notify
/*
#include <CoreServices/CoreServices.h>
*/
import
"C"
var
refZero
=
(
*
C
.
struct___CFAllocator
)(
nil
)
vendor/github.com/rjeczalik/notify/watcher_fsevents_go1.11.go
deleted
100644 → 0
View file @
1acefafe
// Copyright (c) 2018 The Notify Authors. All rights reserved.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
// +build darwin,!kqueue,go1.11
package
notify
const
refZero
=
0
vendor/vendor.json
View file @
f236ac71
...
@@ -370,10 +370,10 @@
...
@@ -370,10 +370,10 @@
"revisionTime"
:
"2017-08-14T17:01:13Z"
"revisionTime"
:
"2017-08-14T17:01:13Z"
},
},
{
{
"checksumSHA1"
:
"
D8AVDI39CJ+jvw0HOotYU2gz54c
="
,
"checksumSHA1"
:
"
lU41NL1TEDtsrr0yUdp3SMB4Y9o
="
,
"path"
:
"github.com/rjeczalik/notify"
,
"path"
:
"github.com/rjeczalik/notify"
,
"revision"
:
"
4e54e7fd043e865c50bda93359fb78813a8d165b
"
,
"revision"
:
"
0f065fa99b48b842c3fd3e2c8b194c6f2b69f6b8
"
,
"revisionTime"
:
"2018-08-
08T20:39:25
Z"
"revisionTime"
:
"2018-08-
27T19:31:19
Z"
},
},
{
{
"checksumSHA1"
:
"5uqO4ITTDMklKi3uNaE/D9LQ5nM="
,
"checksumSHA1"
:
"5uqO4ITTDMklKi3uNaE/D9LQ5nM="
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment