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
e3952ffb
Commit
e3952ffb
authored
Dec 18, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
d58c048b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
5 deletions
+18
-5
bigfile/_file_zodb.pyx
bigfile/_file_zodb.pyx
+18
-5
No files found.
bigfile/_file_zodb.pyx
View file @
e3952ffb
...
...
@@ -91,13 +91,26 @@ cdef public class _ZBigFile(BigFile) [object _ZBigFile, type _ZBigFile_Type]:
pywfileh
=
pywconn
.
open
(
zf
.
zself
.
_p_oid
)
zf
.
wfileh
=
pywfileh
.
wfileh
# return XXX
# functions that we give to virtmem bigfile_ops .mmap*
# zf is ready to serve mmap requests via .wfileh
# return pycapsule with corresponding mmap methods.
#
# the capsule is not bound to particula _ZBigFile object because
# .mmap_* methods receive BigFile* argument which they upcaset to _ZBigFile.
return
_ZBigFile_mmap_pycapsule
# _ZBigFile_mmap_pycapsule is pycapsule with functions that we give to
# PyBigFile for virtmem .mmap* ops.
cdef
extern
from
"<wendelin/bigfile/file.h>"
nogil
:
struct
bigfile_ops
:
pass
cdef
extern
from
*
nogil
:
"""
extern bigfile_ops ZBigFile_mmap_ops;
"""
const
bigfile_ops
ZBigFile_mmap_ops
from
cpython
cimport
PyCapsule_New
cdef
object
_ZBigFile_mmap_pycapsule
=
PyCapsule_New
(
&
ZBigFile_mmap_ops
,
"bigfile.blkmmaper"
,
NULL
)
# pywconnOf establishes and returns (py) wcfs.Conn associated with zconn.
...
...
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