Commit 7c1cf617 authored by Max Kellermann's avatar Max Kellermann

thread/{Cond,Mutex}: use "class" instead of "typedef"

Allows forward-declaration.
parent eb10d086
......@@ -20,6 +20,8 @@
#ifndef MPD_ARCHIVE_FILE_HXX
#define MPD_ARCHIVE_FILE_HXX
class Mutex;
class Cond;
class Error;
class ArchiveFile {
......
......@@ -20,9 +20,6 @@
#ifndef MPD_ARCHIVE_PLUGIN_HXX
#define MPD_ARCHIVE_PLUGIN_HXX
#include "thread/Mutex.hxx"
#include "thread/Cond.hxx"
struct input_stream;
class ArchiveFile;
class ArchiveVisitor;
......
......@@ -20,6 +20,7 @@
#include "config.h"
#include "InputInternal.hxx"
#include "InputStream.hxx"
#include "thread/Cond.hxx"
void
input_stream_signal_client(struct input_stream *is)
......
......@@ -22,7 +22,6 @@
#include "check.h"
#include "thread/Mutex.hxx"
#include "thread/Cond.hxx"
#include "Compiler.h"
#include <string>
......@@ -31,6 +30,7 @@
#include <assert.h>
class Cond;
class Error;
struct Tag;
......
......@@ -20,9 +20,8 @@
#ifndef MPD_PLAYLIST_ANY_HXX
#define MPD_PLAYLIST_ANY_HXX
#include "thread/Mutex.hxx"
#include "thread/Cond.hxx"
class Mutex;
class Cond;
class SongEnumerator;
struct input_stream;
......
......@@ -20,9 +20,8 @@
#ifndef MPD_PLAYLIST_MAPPER_HXX
#define MPD_PLAYLIST_MAPPER_HXX
#include "thread/Mutex.hxx"
#include "thread/Cond.hxx"
class Mutex;
class Cond;
class SongEnumerator;
struct input_stream;
......
......@@ -20,12 +20,11 @@
#ifndef MPD_PLAYLIST_PLUGIN_HXX
#define MPD_PLAYLIST_PLUGIN_HXX
#include "thread/Mutex.hxx"
#include "thread/Cond.hxx"
struct config_param;
struct input_stream;
struct Tag;
class Mutex;
class Cond;
class SongEnumerator;
struct playlist_plugin {
......
......@@ -34,6 +34,7 @@
#include "InputStream.hxx"
#include "Song.hxx"
#include "util/Error.hxx"
#include "thread/Cond.hxx"
void
playlist_print_uris(Client *client, const struct playlist *playlist)
......
......@@ -26,6 +26,7 @@
#include "InputStream.hxx"
#include "SongEnumerator.hxx"
#include "Song.hxx"
#include "thread/Cond.hxx"
enum playlist_result
playlist_load_into_queue(const char *uri, SongEnumerator &e,
......
......@@ -20,9 +20,8 @@
#ifndef MPD_PLAYLIST_REGISTRY_HXX
#define MPD_PLAYLIST_REGISTRY_HXX
#include "thread/Mutex.hxx"
#include "thread/Cond.hxx"
class Mutex;
class Cond;
class SongEnumerator;
struct input_stream;
......
......@@ -33,6 +33,7 @@
#include "tag/TagHandler.hxx"
#include "tag/TagId3.hxx"
#include "tag/ApeTag.hxx"
#include "thread/Cond.hxx"
#include <assert.h>
#include <sys/types.h>
......
......@@ -24,6 +24,7 @@
#include "DecoderList.hxx"
#include "DecoderPlugin.hxx"
#include "InputStream.hxx"
#include "thread/Cond.hxx"
#include <assert.h>
#include <unistd.h> /* for SEEK_SET */
......
......@@ -25,12 +25,12 @@
/* mingw-w64 4.6.3 lacks a std::cond implementation */
#include "WindowsCond.hxx"
typedef WindowsCond Cond;
class Cond : public WindowsCond {};
#else
#include "PosixCond.hxx"
typedef PosixCond Cond;
class Cond : public PosixCond {};
#endif
......
......@@ -25,13 +25,12 @@
/* mingw-w64 4.6.3 lacks a std::mutex implementation */
#include "CriticalSection.hxx"
typedef CriticalSection Mutex;
class Mutex : public CriticalSection {};
#else
#include "PosixMutex.hxx"
typedef PosixMutex Mutex;
class Mutex : public PosixMutex {};
#endif
......
......@@ -32,6 +32,7 @@
#include "PlaylistPlugin.hxx"
#include "fs/Path.hxx"
#include "util/Error.hxx"
#include "thread/Cond.hxx"
#include "Log.hxx"
#include <glib.h>
......
......@@ -25,6 +25,7 @@
#include "stdbin.h"
#include "TextInputStream.hxx"
#include "util/Error.hxx"
#include "thread/Cond.hxx"
#include "Log.hxx"
#ifdef ENABLE_ARCHIVE
......
......@@ -28,6 +28,7 @@
#include "tag/TagId3.hxx"
#include "tag/ApeTag.hxx"
#include "util/Error.hxx"
#include "thread/Cond.hxx"
#include "Log.hxx"
#include <glib.h>
......
......@@ -25,6 +25,7 @@
#include "InputStream.hxx"
#include "AudioFormat.hxx"
#include "util/Error.hxx"
#include "thread/Cond.hxx"
#include "Log.hxx"
#include "stdbin.h"
......
......@@ -26,6 +26,7 @@
#include "InputInit.hxx"
#include "IOThread.hxx"
#include "util/Error.hxx"
#include "thread/Cond.hxx"
#include "Log.hxx"
#ifdef ENABLE_ARCHIVE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment