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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
b0d4d81c
Commit
b0d4d81c
authored
Nov 14, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
dcca0784
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
wcfs/internal/wcfs_misc.h
wcfs/internal/wcfs_misc.h
+4
-0
wcfs/internal/wcfs_watchlink.cpp
wcfs/internal/wcfs_watchlink.cpp
+2
-1
wcfs/internal/wcfs_watchlink.h
wcfs/internal/wcfs_watchlink.h
+1
-1
No files found.
wcfs/internal/wcfs_misc.h
View file @
b0d4d81c
...
...
@@ -50,6 +50,10 @@ using std::tie;
#include <vector>
using
std
::
vector
;
#include <functional>
using
std
::
function
;
// nil is synonym for nullptr and NULL.
const
nullptr_t
nil
=
nullptr
;
...
...
wcfs/internal/wcfs_watchlink.cpp
View file @
b0d4d81c
...
...
@@ -49,8 +49,9 @@ pair<WatchLink, error> WCFS::_openwatch() {
wlink
->
_rxdown
=
false
;
wlink
->
_req_next
=
1
;
context
::
Context
serveCtx
;
tie
(
serveCtx
,
wlink
->
_serveCancel
)
=
context
::
with_cancel
(
context
::
background
());
#if 0
serveCtx, wlink._serveCancel = context.with_cancel(context.background())
wlink->_serveWG = sync.WorkGroup(serveCtx)
wlink->_serveWG.go(wlink._serveRX)
#endif
...
...
wcfs/internal/wcfs_watchlink.h
View file @
b0d4d81c
...
...
@@ -86,8 +86,8 @@ class _WatchLink : public object {
sync
::
Mutex
_txmu
;
// serializes writes
sync
::
Once
_txclose1
;
function
<
void
()
>
_serveCancel
;
#if 0
func() _serveCancel
sync.WorkGroup *_serveWG
#endif
...
...
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