thread/{Cond,Mutex}: use "class" instead of "typedef"
Allows forward-declaration.
This commit is contained in:
@@ -20,6 +20,8 @@
|
|||||||
#ifndef MPD_ARCHIVE_FILE_HXX
|
#ifndef MPD_ARCHIVE_FILE_HXX
|
||||||
#define MPD_ARCHIVE_FILE_HXX
|
#define MPD_ARCHIVE_FILE_HXX
|
||||||
|
|
||||||
|
class Mutex;
|
||||||
|
class Cond;
|
||||||
class Error;
|
class Error;
|
||||||
|
|
||||||
class ArchiveFile {
|
class ArchiveFile {
|
||||||
|
@@ -20,9 +20,6 @@
|
|||||||
#ifndef MPD_ARCHIVE_PLUGIN_HXX
|
#ifndef MPD_ARCHIVE_PLUGIN_HXX
|
||||||
#define MPD_ARCHIVE_PLUGIN_HXX
|
#define MPD_ARCHIVE_PLUGIN_HXX
|
||||||
|
|
||||||
#include "thread/Mutex.hxx"
|
|
||||||
#include "thread/Cond.hxx"
|
|
||||||
|
|
||||||
struct input_stream;
|
struct input_stream;
|
||||||
class ArchiveFile;
|
class ArchiveFile;
|
||||||
class ArchiveVisitor;
|
class ArchiveVisitor;
|
||||||
|
@@ -20,6 +20,7 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "InputInternal.hxx"
|
#include "InputInternal.hxx"
|
||||||
#include "InputStream.hxx"
|
#include "InputStream.hxx"
|
||||||
|
#include "thread/Cond.hxx"
|
||||||
|
|
||||||
void
|
void
|
||||||
input_stream_signal_client(struct input_stream *is)
|
input_stream_signal_client(struct input_stream *is)
|
||||||
|
@@ -22,7 +22,6 @@
|
|||||||
|
|
||||||
#include "check.h"
|
#include "check.h"
|
||||||
#include "thread/Mutex.hxx"
|
#include "thread/Mutex.hxx"
|
||||||
#include "thread/Cond.hxx"
|
|
||||||
#include "Compiler.h"
|
#include "Compiler.h"
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
@@ -31,6 +30,7 @@
|
|||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
|
class Cond;
|
||||||
class Error;
|
class Error;
|
||||||
struct Tag;
|
struct Tag;
|
||||||
|
|
||||||
|
@@ -20,9 +20,8 @@
|
|||||||
#ifndef MPD_PLAYLIST_ANY_HXX
|
#ifndef MPD_PLAYLIST_ANY_HXX
|
||||||
#define MPD_PLAYLIST_ANY_HXX
|
#define MPD_PLAYLIST_ANY_HXX
|
||||||
|
|
||||||
#include "thread/Mutex.hxx"
|
class Mutex;
|
||||||
#include "thread/Cond.hxx"
|
class Cond;
|
||||||
|
|
||||||
class SongEnumerator;
|
class SongEnumerator;
|
||||||
struct input_stream;
|
struct input_stream;
|
||||||
|
|
||||||
|
@@ -20,9 +20,8 @@
|
|||||||
#ifndef MPD_PLAYLIST_MAPPER_HXX
|
#ifndef MPD_PLAYLIST_MAPPER_HXX
|
||||||
#define MPD_PLAYLIST_MAPPER_HXX
|
#define MPD_PLAYLIST_MAPPER_HXX
|
||||||
|
|
||||||
#include "thread/Mutex.hxx"
|
class Mutex;
|
||||||
#include "thread/Cond.hxx"
|
class Cond;
|
||||||
|
|
||||||
class SongEnumerator;
|
class SongEnumerator;
|
||||||
struct input_stream;
|
struct input_stream;
|
||||||
|
|
||||||
|
@@ -20,12 +20,11 @@
|
|||||||
#ifndef MPD_PLAYLIST_PLUGIN_HXX
|
#ifndef MPD_PLAYLIST_PLUGIN_HXX
|
||||||
#define MPD_PLAYLIST_PLUGIN_HXX
|
#define MPD_PLAYLIST_PLUGIN_HXX
|
||||||
|
|
||||||
#include "thread/Mutex.hxx"
|
|
||||||
#include "thread/Cond.hxx"
|
|
||||||
|
|
||||||
struct config_param;
|
struct config_param;
|
||||||
struct input_stream;
|
struct input_stream;
|
||||||
struct Tag;
|
struct Tag;
|
||||||
|
class Mutex;
|
||||||
|
class Cond;
|
||||||
class SongEnumerator;
|
class SongEnumerator;
|
||||||
|
|
||||||
struct playlist_plugin {
|
struct playlist_plugin {
|
||||||
|
@@ -34,6 +34,7 @@
|
|||||||
#include "InputStream.hxx"
|
#include "InputStream.hxx"
|
||||||
#include "Song.hxx"
|
#include "Song.hxx"
|
||||||
#include "util/Error.hxx"
|
#include "util/Error.hxx"
|
||||||
|
#include "thread/Cond.hxx"
|
||||||
|
|
||||||
void
|
void
|
||||||
playlist_print_uris(Client *client, const struct playlist *playlist)
|
playlist_print_uris(Client *client, const struct playlist *playlist)
|
||||||
|
@@ -26,6 +26,7 @@
|
|||||||
#include "InputStream.hxx"
|
#include "InputStream.hxx"
|
||||||
#include "SongEnumerator.hxx"
|
#include "SongEnumerator.hxx"
|
||||||
#include "Song.hxx"
|
#include "Song.hxx"
|
||||||
|
#include "thread/Cond.hxx"
|
||||||
|
|
||||||
enum playlist_result
|
enum playlist_result
|
||||||
playlist_load_into_queue(const char *uri, SongEnumerator &e,
|
playlist_load_into_queue(const char *uri, SongEnumerator &e,
|
||||||
|
@@ -20,9 +20,8 @@
|
|||||||
#ifndef MPD_PLAYLIST_REGISTRY_HXX
|
#ifndef MPD_PLAYLIST_REGISTRY_HXX
|
||||||
#define MPD_PLAYLIST_REGISTRY_HXX
|
#define MPD_PLAYLIST_REGISTRY_HXX
|
||||||
|
|
||||||
#include "thread/Mutex.hxx"
|
class Mutex;
|
||||||
#include "thread/Cond.hxx"
|
class Cond;
|
||||||
|
|
||||||
class SongEnumerator;
|
class SongEnumerator;
|
||||||
struct input_stream;
|
struct input_stream;
|
||||||
|
|
||||||
|
@@ -33,6 +33,7 @@
|
|||||||
#include "tag/TagHandler.hxx"
|
#include "tag/TagHandler.hxx"
|
||||||
#include "tag/TagId3.hxx"
|
#include "tag/TagId3.hxx"
|
||||||
#include "tag/ApeTag.hxx"
|
#include "tag/ApeTag.hxx"
|
||||||
|
#include "thread/Cond.hxx"
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
@@ -24,6 +24,7 @@
|
|||||||
#include "DecoderList.hxx"
|
#include "DecoderList.hxx"
|
||||||
#include "DecoderPlugin.hxx"
|
#include "DecoderPlugin.hxx"
|
||||||
#include "InputStream.hxx"
|
#include "InputStream.hxx"
|
||||||
|
#include "thread/Cond.hxx"
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <unistd.h> /* for SEEK_SET */
|
#include <unistd.h> /* for SEEK_SET */
|
||||||
|
@@ -25,12 +25,12 @@
|
|||||||
/* mingw-w64 4.6.3 lacks a std::cond implementation */
|
/* mingw-w64 4.6.3 lacks a std::cond implementation */
|
||||||
|
|
||||||
#include "WindowsCond.hxx"
|
#include "WindowsCond.hxx"
|
||||||
typedef WindowsCond Cond;
|
class Cond : public WindowsCond {};
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#include "PosixCond.hxx"
|
#include "PosixCond.hxx"
|
||||||
typedef PosixCond Cond;
|
class Cond : public PosixCond {};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -25,13 +25,12 @@
|
|||||||
/* mingw-w64 4.6.3 lacks a std::mutex implementation */
|
/* mingw-w64 4.6.3 lacks a std::mutex implementation */
|
||||||
|
|
||||||
#include "CriticalSection.hxx"
|
#include "CriticalSection.hxx"
|
||||||
typedef CriticalSection Mutex;
|
class Mutex : public CriticalSection {};
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#include "PosixMutex.hxx"
|
#include "PosixMutex.hxx"
|
||||||
|
class Mutex : public PosixMutex {};
|
||||||
typedef PosixMutex Mutex;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -32,6 +32,7 @@
|
|||||||
#include "PlaylistPlugin.hxx"
|
#include "PlaylistPlugin.hxx"
|
||||||
#include "fs/Path.hxx"
|
#include "fs/Path.hxx"
|
||||||
#include "util/Error.hxx"
|
#include "util/Error.hxx"
|
||||||
|
#include "thread/Cond.hxx"
|
||||||
#include "Log.hxx"
|
#include "Log.hxx"
|
||||||
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
@@ -25,6 +25,7 @@
|
|||||||
#include "stdbin.h"
|
#include "stdbin.h"
|
||||||
#include "TextInputStream.hxx"
|
#include "TextInputStream.hxx"
|
||||||
#include "util/Error.hxx"
|
#include "util/Error.hxx"
|
||||||
|
#include "thread/Cond.hxx"
|
||||||
#include "Log.hxx"
|
#include "Log.hxx"
|
||||||
|
|
||||||
#ifdef ENABLE_ARCHIVE
|
#ifdef ENABLE_ARCHIVE
|
||||||
|
@@ -28,6 +28,7 @@
|
|||||||
#include "tag/TagId3.hxx"
|
#include "tag/TagId3.hxx"
|
||||||
#include "tag/ApeTag.hxx"
|
#include "tag/ApeTag.hxx"
|
||||||
#include "util/Error.hxx"
|
#include "util/Error.hxx"
|
||||||
|
#include "thread/Cond.hxx"
|
||||||
#include "Log.hxx"
|
#include "Log.hxx"
|
||||||
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
@@ -25,6 +25,7 @@
|
|||||||
#include "InputStream.hxx"
|
#include "InputStream.hxx"
|
||||||
#include "AudioFormat.hxx"
|
#include "AudioFormat.hxx"
|
||||||
#include "util/Error.hxx"
|
#include "util/Error.hxx"
|
||||||
|
#include "thread/Cond.hxx"
|
||||||
#include "Log.hxx"
|
#include "Log.hxx"
|
||||||
#include "stdbin.h"
|
#include "stdbin.h"
|
||||||
|
|
||||||
|
@@ -26,6 +26,7 @@
|
|||||||
#include "InputInit.hxx"
|
#include "InputInit.hxx"
|
||||||
#include "IOThread.hxx"
|
#include "IOThread.hxx"
|
||||||
#include "util/Error.hxx"
|
#include "util/Error.hxx"
|
||||||
|
#include "thread/Cond.hxx"
|
||||||
#include "Log.hxx"
|
#include "Log.hxx"
|
||||||
|
|
||||||
#ifdef ENABLE_ARCHIVE
|
#ifdef ENABLE_ARCHIVE
|
||||||
|
Reference in New Issue
Block a user