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
9c370895
Commit
9c370895
authored
Dec 23, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
8daa72b8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
wcfs/internal/_wcfs.pxd
wcfs/internal/_wcfs.pxd
+2
-0
wcfs/internal/_wcfs.pyx
wcfs/internal/_wcfs.pyx
+10
-1
No files found.
wcfs/internal/_wcfs.pxd
View file @
9c370895
...
...
@@ -85,11 +85,13 @@ cdef extern from "wcfs/internal/wcfs.h" namespace "wcfs" nogil:
cppclass
_Conn
:
pair
[
FileH
,
error
]
open
(
Oid
foid
)
error
close
()
error
resync
(
Tid
at
)
cppclass
Conn
(
refptr
[
_Conn
]):
# Conn.X = Conn->X in C++
pair
[
FileH
,
error
]
open
"_ptr()->open"
(
Oid
foid
)
error
close
"_ptr()->close"
()
error
resync
"_ptr()->resync"
(
Tid
at
)
cppclass
_FileH
:
# XXX add mmap?
...
...
wcfs/internal/_wcfs.pyx
View file @
9c370895
...
...
@@ -86,7 +86,13 @@ cdef class PyConn:
pywfileh
.
wfileh
=
wfileh
return
pywfileh
# XXX resync
def
resync
(
PyConn
pywconn
,
pyat
):
cdef
Tid
at
=
u64
(
at
)
with
nogil
:
err
=
wconn_resync_pyexc
(
pywconn
.
wconn
,
at
)
if
err
!=
nil
:
raise
pyerr
(
err
)
cdef
class
PyFileH
:
...
...
@@ -227,6 +233,9 @@ cdef nogil:
pair
[
FileH
,
error
]
wconn_open_pyexc
(
Conn
wconn
,
Oid
foid
)
except
+
topyexc
:
return
wconn
.
open
(
foid
)
error
wconn_resync_pyexc
(
Conn
wconn
,
Tid
at
)
except
+
topyexc
:
return
wconn
.
resync
(
at
)
error
wlink_close_pyexc
(
WatchLink
wlink
)
except
+
topyexc
:
return
wlink
.
close
()
...
...
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