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

Allows forward-declaration.
This commit is contained in:
Max Kellermann 2013-10-17 10:06:31 +02:00
parent eb10d08671
commit 7c1cf61728
19 changed files with 25 additions and 21 deletions

View File

@ -20,6 +20,8 @@
#ifndef MPD_ARCHIVE_FILE_HXX
#define MPD_ARCHIVE_FILE_HXX
class Mutex;
class Cond;
class Error;
class ArchiveFile {

View File

@ -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;

View File

@ -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)

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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 {

View File

@ -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)

View File

@ -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,

View File

@ -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;

View File

@ -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>

View File

@ -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 */

View File

@ -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

View File

@ -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

View File

@ -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>

View File

@ -25,6 +25,7 @@
#include "stdbin.h"
#include "TextInputStream.hxx"
#include "util/Error.hxx"
#include "thread/Cond.hxx"
#include "Log.hxx"
#ifdef ENABLE_ARCHIVE

View File

@ -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>

View File

@ -25,6 +25,7 @@
#include "InputStream.hxx"
#include "AudioFormat.hxx"
#include "util/Error.hxx"
#include "thread/Cond.hxx"
#include "Log.hxx"
#include "stdbin.h"

View File

@ -26,6 +26,7 @@
#include "InputInit.hxx"
#include "IOThread.hxx"
#include "util/Error.hxx"
#include "thread/Cond.hxx"
#include "Log.hxx"
#ifdef ENABLE_ARCHIVE