Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
7d0131d3
Commit
7d0131d3
authored
Nov 20, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
59aa7e1f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
13 deletions
+7
-13
wcfs/internal/wcfs_watchlink.cpp
wcfs/internal/wcfs_watchlink.cpp
+6
-10
wcfs/internal/wcfs_watchlink.h
wcfs/internal/wcfs_watchlink.h
+1
-3
No files found.
wcfs/internal/wcfs_watchlink.cpp
View file @
7d0131d3
...
...
@@ -51,10 +51,10 @@ pair<WatchLink, error> WCFS::_openwatch() {
context
::
Context
serveCtx
;
tie
(
serveCtx
,
wlink
->
_serveCancel
)
=
context
::
with_cancel
(
context
::
background
());
#if 0
wlink->_serveWG
= sync.WorkGroup(serveCtx)
wlink->_serveWG.go(wlink._serveRX)
#endif
wlink
->
_serveWG
=
sync
::
NewWorkGroup
(
serveCtx
);
wlink
->
_serveWG
->
go
([
wlink
](
context
::
Context
ctx
)
->
error
{
return
wlink
->
_serveRX
(
ctx
);
});
return
make_pair
(
wlink
,
nil
);
}
...
...
@@ -87,14 +87,10 @@ error _WatchLink::close() {
//
// XXX -> better pthread_kill(SIGINT) instead of relying on wcfs proper behaviour?
// XXX -> we now have `kill -QUIT` to wcfs.go on test timeout - remove ^^^ comments?
#if 0
error err = wlink._serveWG.wait();
error
err
=
wlink
.
_serveWG
->
wait
();
// canceled is expected and ok
if (err == context
.
canceled)
if
(
err
==
context
::
canceled
)
err
=
nil
;
#else
error
err
=
nil
;
#endif
error
err2
=
wlink
.
_f
->
close
();
if
(
err
==
nil
)
...
...
wcfs/internal/wcfs_watchlink.h
View file @
7d0131d3
...
...
@@ -87,9 +87,7 @@ class _WatchLink : public object {
sync
::
Once
_txclose1
;
func
<
void
()
>
_serveCancel
;
#if 0
sync.WorkGroup *_serveWG
#endif
sync
::
WorkGroup
_serveWG
;
// don't new - create only via WCFS._openwatch()
private:
...
...
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