Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
7c1cf617
Commit
7c1cf617
authored
Oct 17, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
thread/{Cond,Mutex}: use "class" instead of "typedef"
Allows forward-declaration.
parent
eb10d086
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
25 additions
and
21 deletions
+25
-21
ArchiveFile.hxx
src/ArchiveFile.hxx
+2
-0
ArchivePlugin.hxx
src/ArchivePlugin.hxx
+0
-3
InputInternal.cxx
src/InputInternal.cxx
+1
-0
InputStream.hxx
src/InputStream.hxx
+1
-1
PlaylistAny.hxx
src/PlaylistAny.hxx
+2
-3
PlaylistMapper.hxx
src/PlaylistMapper.hxx
+2
-3
PlaylistPlugin.hxx
src/PlaylistPlugin.hxx
+2
-3
PlaylistPrint.cxx
src/PlaylistPrint.cxx
+1
-0
PlaylistQueue.cxx
src/PlaylistQueue.cxx
+1
-0
PlaylistRegistry.hxx
src/PlaylistRegistry.hxx
+2
-3
SongUpdate.cxx
src/SongUpdate.cxx
+1
-0
TagFile.cxx
src/TagFile.cxx
+1
-0
Cond.hxx
src/thread/Cond.hxx
+2
-2
Mutex.hxx
src/thread/Mutex.hxx
+2
-3
dump_playlist.cxx
test/dump_playlist.cxx
+1
-0
dump_text_file.cxx
test/dump_text_file.cxx
+1
-0
read_tags.cxx
test/read_tags.cxx
+1
-0
run_decoder.cxx
test/run_decoder.cxx
+1
-0
run_input.cxx
test/run_input.cxx
+1
-0
No files found.
src/ArchiveFile.hxx
View file @
7c1cf617
...
...
@@ -20,6 +20,8 @@
#ifndef MPD_ARCHIVE_FILE_HXX
#define MPD_ARCHIVE_FILE_HXX
class
Mutex
;
class
Cond
;
class
Error
;
class
ArchiveFile
{
...
...
src/ArchivePlugin.hxx
View file @
7c1cf617
...
...
@@ -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
;
...
...
src/InputInternal.cxx
View file @
7c1cf617
...
...
@@ -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
)
...
...
src/InputStream.hxx
View file @
7c1cf617
...
...
@@ -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
;
...
...
src/PlaylistAny.hxx
View file @
7c1cf617
...
...
@@ -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
;
...
...
src/PlaylistMapper.hxx
View file @
7c1cf617
...
...
@@ -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
;
...
...
src/PlaylistPlugin.hxx
View file @
7c1cf617
...
...
@@ -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
{
...
...
src/PlaylistPrint.cxx
View file @
7c1cf617
...
...
@@ -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
)
...
...
src/PlaylistQueue.cxx
View file @
7c1cf617
...
...
@@ -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
,
...
...
src/PlaylistRegistry.hxx
View file @
7c1cf617
...
...
@@ -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
;
...
...
src/SongUpdate.cxx
View file @
7c1cf617
...
...
@@ -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>
...
...
src/TagFile.cxx
View file @
7c1cf617
...
...
@@ -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 */
...
...
src/thread/Cond.hxx
View file @
7c1cf617
...
...
@@ -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
...
...
src/thread/Mutex.hxx
View file @
7c1cf617
...
...
@@ -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
...
...
test/dump_playlist.cxx
View file @
7c1cf617
...
...
@@ -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>
...
...
test/dump_text_file.cxx
View file @
7c1cf617
...
...
@@ -25,6 +25,7 @@
#include "stdbin.h"
#include "TextInputStream.hxx"
#include "util/Error.hxx"
#include "thread/Cond.hxx"
#include "Log.hxx"
#ifdef ENABLE_ARCHIVE
...
...
test/read_tags.cxx
View file @
7c1cf617
...
...
@@ -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>
...
...
test/run_decoder.cxx
View file @
7c1cf617
...
...
@@ -25,6 +25,7 @@
#include "InputStream.hxx"
#include "AudioFormat.hxx"
#include "util/Error.hxx"
#include "thread/Cond.hxx"
#include "Log.hxx"
#include "stdbin.h"
...
...
test/run_input.cxx
View file @
7c1cf617
...
...
@@ -26,6 +26,7 @@
#include "InputInit.hxx"
#include "IOThread.hxx"
#include "util/Error.hxx"
#include "thread/Cond.hxx"
#include "Log.hxx"
#ifdef ENABLE_ARCHIVE
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment