thread/Mutex: use using instead of making it a derived class

Prepare the transition to std::mutex.
This commit is contained in:
Max Kellermann
2019-05-07 19:23:01 +02:00
parent 1b5c1f75a4
commit 0a0cc66e8f
19 changed files with 21 additions and 25 deletions

View File

@@ -21,10 +21,10 @@
#define MPD_INPUT_PLUGIN_HXX
#include "Ptr.hxx"
#include "thread/Mutex.hxx"
#include "util/Compiler.h"
struct ConfigBlock;
class Mutex;
class EventLoop;
class RemoteTagScanner;
class RemoteTagHandler;

View File

@@ -21,9 +21,9 @@
#define MPD_INPUT_LOCAL_OPEN_HXX
#include "Ptr.hxx"
#include "thread/Mutex.hxx"
class Path;
class Mutex;
/**
* Open a "local" file. This is a wrapper for the input plugins

View File

@@ -21,9 +21,9 @@
#define MPD_INPUT_ARCHIVE_HXX
#include "input/Ptr.hxx"
#include "thread/Mutex.hxx"
class Path;
class Mutex;
InputStreamPtr
OpenArchiveInputStream(Path path, Mutex &mutex);

View File

@@ -21,12 +21,11 @@
#define MPD_INPUT_CURL_HXX
#include "input/Ptr.hxx"
#include "thread/Mutex.hxx"
#include <string>
#include <map>
class Mutex;
extern const struct InputPlugin input_plugin_curl;
/**

View File

@@ -21,9 +21,9 @@
#define MPD_INPUT_FILE_HXX
#include "input/Ptr.hxx"
#include "thread/Mutex.hxx"
class Path;
class Mutex;
InputStreamPtr
OpenFileInputStream(Path path, Mutex &mutex);