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
e23f0fc1
Commit
e23f0fc1
authored
Nov 26, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
17af7916
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
1 deletion
+14
-1
wcfs/internal/_wcfs.pyx
wcfs/internal/_wcfs.pyx
+9
-0
wcfs/internal/wcfs_watchlink.cpp
wcfs/internal/wcfs_watchlink.cpp
+1
-1
wcfs/internal/wcfs_watchlink.h
wcfs/internal/wcfs_watchlink.h
+4
-0
No files found.
wcfs/internal/_wcfs.pyx
View file @
e23f0fc1
...
...
@@ -28,6 +28,7 @@ from golang cimport context
from
libcpp
cimport
nullptr_t
,
nullptr
as
nil
from
libcpp.utility
cimport
pair
from
libcpp.vector
cimport
vector
cdef
extern
from
*
:
ctypedef
bint
cbool
"bool"
...
...
@@ -53,6 +54,7 @@ cdef extern from "wcfs_watchlink.h" nogil:
error
closeWrite
()
error
recvReq
(
context
.
Context
ctx
,
PinReq
*
prx
)
pair
[
string
,
error
]
sendReq
(
context
.
Context
ctx
,
const
string
&
req
)
vector
[
string
]
fatalv
cppclass
WatchLink
(
refptr
[
_WatchLink
]):
# WatchLink.X = WatchLink->X in C++
...
...
@@ -60,6 +62,7 @@ cdef extern from "wcfs_watchlink.h" nogil:
error
closeWrite
"_ptr()->closeWrite"
()
error
recvReq
"_ptr()->recvReq"
(
context
.
Context
ctx
,
PinReq
*
prx
)
pair
[
string
,
error
]
sendReq
"_ptr()->sendReq"
(
context
.
Context
ctx
,
const
string
&
req
)
vector
[
string
]
fatalv
"_ptr()->fatalv"
cppclass
PinReq
:
Oid
foid
...
...
@@ -142,6 +145,12 @@ cdef class PyWatchLink:
return
reply
# XXX for tests
property
fatalv
:
def
__get__
(
PyWatchLink
pywlink
):
return
pywlink
.
wlink
.
fatalv
cdef
class
PyPinReq
:
cdef
PinReq
pinreq
...
...
wcfs/internal/wcfs_watchlink.cpp
View file @
e23f0fc1
...
...
@@ -165,7 +165,7 @@ error _WatchLink::_serveRX(context::Context ctx) { // XXX error -> where ?
if
(
pkt
.
stream
==
0
)
{
// control/fatal message from wcfs
// XXX print -> receive somewhere? XXX -> recvCtl ?
printf
(
"C: watch : rx fatal: %s
\n
"
,
l
.
c_str
());
//wlink.fatalv.append(msg
);
wlink
.
fatalv
.
push_back
(
pkt
.
to_string
()
);
continue
;
}
...
...
wcfs/internal/wcfs_watchlink.h
View file @
e23f0fc1
...
...
@@ -89,6 +89,10 @@ class _WatchLink : public object {
func
<
void
()
>
_serveCancel
;
sync
::
WorkGroup
_serveWG
;
// XXX for tests, ad-hoc, racy. TODO rework to send messeges to control channel
public:
vector
<
string
>
fatalv
;
// don't new - create only via WCFS._openwatch()
private:
_WatchLink
();
...
...
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