Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
6d590480
Commit
6d590480
authored
Jan 26, 2017
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib/nfs/FileReader: use nfs_get_event_loop()
Make sure we're using the same EventLoop as the NfsManager.
parent
d4993c40
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
7 deletions
+6
-7
NfsInputPlugin.cxx
src/input/plugins/NfsInputPlugin.cxx
+1
-2
FileReader.cxx
src/lib/nfs/FileReader.cxx
+2
-2
FileReader.hxx
src/lib/nfs/FileReader.hxx
+1
-1
Glue.cxx
src/lib/nfs/Glue.cxx
+1
-1
Glue.hxx
src/lib/nfs/Glue.hxx
+1
-1
No files found.
src/input/plugins/NfsInputPlugin.cxx
View file @
6d590480
...
...
@@ -50,8 +50,7 @@ public:
NfsInputStream
(
const
char
*
_uri
,
Mutex
&
_mutex
,
Cond
&
_cond
)
:
AsyncInputStream
(
io_thread_get
(),
_uri
,
_mutex
,
_cond
,
NFS_MAX_BUFFERED
,
NFS_RESUME_AT
),
NfsFileReader
(
io_thread_get
())
{}
NFS_RESUME_AT
)
{}
virtual
~
NfsInputStream
()
{
DeferClose
();
...
...
src/lib/nfs/FileReader.cxx
View file @
6d590480
...
...
@@ -32,8 +32,8 @@
#include <fcntl.h>
#include <sys/stat.h>
NfsFileReader
::
NfsFileReader
(
EventLoop
&
event_loop
)
:
DeferredMonitor
(
event_loop
),
state
(
State
::
INITIAL
)
NfsFileReader
::
NfsFileReader
()
:
DeferredMonitor
(
nfs_get_event_loop
()
),
state
(
State
::
INITIAL
)
{
}
...
...
src/lib/nfs/FileReader.hxx
View file @
6d590480
...
...
@@ -64,7 +64,7 @@ class NfsFileReader : NfsLease, NfsCallback, DeferredMonitor {
nfsfh
*
fh
;
public
:
NfsFileReader
(
EventLoop
&
event_loop
);
NfsFileReader
();
~
NfsFileReader
();
using
DeferredMonitor
::
GetEventLoop
;
...
...
src/lib/nfs/Glue.cxx
View file @
6d590480
...
...
@@ -48,7 +48,7 @@ nfs_finish()
BlockingCall
(
nfs_glue
->
GetEventLoop
(),
[](){
nfs_glue
.
Destruct
();
});
}
Event
_
Loop
&
EventLoop
&
nfs_get_event_loop
()
{
assert
(
in_use
>
0
);
...
...
src/lib/nfs/Glue.hxx
View file @
6d590480
...
...
@@ -36,7 +36,7 @@ nfs_finish();
* Return the EventLoop that was passed to nfs_init().
*/
gcc_const
Event
_
Loop
&
EventLoop
&
nfs_get_event_loop
();
gcc_pure
...
...
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