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
c6da1a38
Commit
c6da1a38
authored
Oct 30, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
868f88cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
wcfs/internal/wcfs_virtmem.cpp
wcfs/internal/wcfs_virtmem.cpp
+10
-11
No files found.
wcfs/internal/wcfs_virtmem.cpp
View file @
c6da1a38
...
...
@@ -255,13 +255,12 @@ tuple<Conn*, error> WCFS::connect(Tid at) {
return
make_tuple
(
wconn
,
nil
);
}
// XXX Conn::close
#if 0
# close releases resources associated with wconn.
# XXX what happens to file mmappings?
@func(Conn)
def close(wconn):
wconn._wlink.close()
// close releases resources associated with wconn.
// XXX what happens to file mmappings?
error
Conn
::
close
(
wconn
)
{
Conn
&
wconn
=
*
this
;
wconn
.
_wlink
.
close
();
wconn
.
_pinCancel
()
try:
wconn
.
_pinWG
.
wait
()
...
...
@@ -269,9 +268,9 @@ def close(wconn):
if
e
is
not
context
.
canceled
:
raise
#
close all files - both that have no mappings and that still have opened mappings.
#
XXX after file is closed mappings continue to survive, but we can no
#
longer maintain consistent view.
//
close all files - both that have no mappings and that still have opened mappings.
//
XXX after file is closed mappings continue to survive, but we can no
//
longer maintain consistent view.
with
wconn
.
_filemu
:
for
f
in
wconn
.
_filetab
.
values
()
:
f
.
headf
.
close
()
...
...
@@ -280,7 +279,7 @@ def close(wconn):
# XXX stop watching f
wconn
.
_filetab
=
None
#endif
}
// _pinner receives pin messages from wcfs and adjusts wconn mappings.
void
Conn
::
_pinner
(
IContext
*
ctx
)
{
...
...
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