summaryrefslogtreecommitdiff
path: root/src/input/AsyncInputStream.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-04-26 19:19:45 +0200
committerMax Kellermann <max@musicpd.org>2019-05-07 19:09:39 +0200
commit1b5c1f75a401623cd279466dcb99f8e718d8c7c4 (patch)
tree73ca6bc2c3c9c05c4b23e1b9a4bf97072f672a3d /src/input/AsyncInputStream.hxx
parent040573c636c2c3780ceeb6301854dba4eb68b0e2 (diff)
input/InputStreams: pass std::unique_lock<> to various methods
Diffstat (limited to 'src/input/AsyncInputStream.hxx')
-rw-r--r--src/input/AsyncInputStream.hxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/input/AsyncInputStream.hxx b/src/input/AsyncInputStream.hxx
index 958f5f690..2577cd9fa 100644
--- a/src/input/AsyncInputStream.hxx
+++ b/src/input/AsyncInputStream.hxx
@@ -83,10 +83,12 @@ public:
/* virtual methods from InputStream */
void Check() final;
bool IsEOF() noexcept final;
- void Seek(offset_type new_offset) final;
+ void Seek(std::unique_lock<Mutex> &lock,
+ offset_type new_offset) final;
std::unique_ptr<Tag> ReadTag() noexcept final;
bool IsAvailable() noexcept final;
- size_t Read(void *ptr, size_t read_size) final;
+ size_t Read(std::unique_lock<Mutex> &lock,
+ void *ptr, size_t read_size) final;
protected:
/**