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
7e1f6104
Commit
7e1f6104
authored
Mar 02, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
213234bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
wcfs/client/wcfs.h
wcfs/client/wcfs.h
+7
-0
No files found.
wcfs/client/wcfs.h
View file @
7e1f6104
...
...
@@ -220,6 +220,12 @@ private:
// Use .mmap to map file view into memory.
//
// It is safe to use FileH from multiple threads simultaneously.
enum
_FileHState
{
_FileHOpening
=
0
,
// FileH open is in progress
_FileHOpened
=
1
,
// FileH is opened and can be used
_FileHClosing
=
2
,
// FileH close is in progress
_FileHClosed
=
3
,
// FileH is closed
};
typedef
refptr
<
struct
_FileH
>
FileH
;
struct
_FileH
:
object
{
Conn
wconn
;
...
...
@@ -240,6 +246,7 @@ struct _FileH : object {
vector
<
Mapping
>
_mmaps
;
// []Mapping ↑blk_start mappings of this file
// XXX protect by wconn.mu ?
enum
_FileHState
_state
;
// opening/opened/closing/closed
int
_nopen
;
// number of times Conn.open returned this fileh
bool
_closed
;
// y after .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