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
ea26da0b
Commit
ea26da0b
authored
Aug 06, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
util/FifoBuffer: rename to StaticFifoBuffer
parent
1f3d3970
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
11 deletions
+11
-11
BufferedSocket.hxx
src/event/BufferedSocket.hxx
+2
-2
TextInputStream.hxx
src/input/TextInputStream.hxx
+2
-2
StaticFifoBuffer.hxx
src/util/StaticFifoBuffer.hxx
+5
-5
run_convert.cxx
test/run_convert.cxx
+2
-2
No files found.
src/event/BufferedSocket.hxx
View file @
ea26da0b
...
...
@@ -22,7 +22,7 @@
#include "check.h"
#include "SocketMonitor.hxx"
#include "util/FifoBuffer.hxx"
#include "util/
Static
FifoBuffer.hxx"
#include <assert.h>
#include <stdint.h>
...
...
@@ -34,7 +34,7 @@ class EventLoop;
* A #SocketMonitor specialization that adds an input buffer.
*/
class
BufferedSocket
:
protected
SocketMonitor
{
FifoBuffer
<
uint8_t
,
8192
>
input
;
Static
FifoBuffer
<
uint8_t
,
8192
>
input
;
public
:
BufferedSocket
(
int
_fd
,
EventLoop
&
_loop
)
...
...
src/input/TextInputStream.hxx
View file @
ea26da0b
...
...
@@ -20,7 +20,7 @@
#ifndef MPD_TEXT_INPUT_STREAM_HXX
#define MPD_TEXT_INPUT_STREAM_HXX
#include "util/FifoBuffer.hxx"
#include "util/
Static
FifoBuffer.hxx"
#include <string>
...
...
@@ -28,7 +28,7 @@ class InputStream;
class
TextInputStream
{
InputStream
&
is
;
FifoBuffer
<
char
,
4096
>
buffer
;
Static
FifoBuffer
<
char
,
4096
>
buffer
;
public
:
/**
...
...
src/util/FifoBuffer.hxx
→
src/util/
Static
FifoBuffer.hxx
View file @
ea26da0b
/*
* Copyright (C) 2003-201
0
Max Kellermann <max@duempel.org>
* Copyright (C) 2003-201
4
Max Kellermann <max@duempel.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
...
...
@@ -27,8 +27,8 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef FIFO_BUFFER_HPP
#define FIFO_BUFFER_HPP
#ifndef
STATIC_
FIFO_BUFFER_HPP
#define
STATIC_
FIFO_BUFFER_HPP
#include "WritableBuffer.hxx"
...
...
@@ -44,7 +44,7 @@
* buffer as needed. It is not thread safe.
*/
template
<
class
T
,
size_t
size
>
class
FifoBuffer
{
class
Static
FifoBuffer
{
public
:
typedef
size_t
size_type
;
...
...
@@ -57,7 +57,7 @@ protected:
public
:
constexpr
FifoBuffer
()
:
head
(
0
),
tail
(
0
)
{}
Static
FifoBuffer
()
:
head
(
0
),
tail
(
0
)
{}
protected
:
void
Shift
()
{
...
...
test/run_convert.cxx
View file @
ea26da0b
...
...
@@ -28,7 +28,7 @@
#include "AudioFormat.hxx"
#include "pcm/PcmConvert.hxx"
#include "config/ConfigGlobal.hxx"
#include "util/FifoBuffer.hxx"
#include "util/
Static
FifoBuffer.hxx"
#include "util/Error.hxx"
#include "Log.hxx"
#include "stdbin.h"
...
...
@@ -81,7 +81,7 @@ int main(int argc, char **argv)
return
EXIT_FAILURE
;
}
FifoBuffer
<
uint8_t
,
4096
>
buffer
;
Static
FifoBuffer
<
uint8_t
,
4096
>
buffer
;
while
(
true
)
{
{
...
...
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