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
674d1487
Commit
674d1487
authored
Jan 06, 2015
by
Max Kellermann
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v0.19.x'
parents
81df45a8
37e90108
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
6 deletions
+21
-6
NEWS
NEWS
+2
-0
AsyncInputStream.cxx
src/input/AsyncInputStream.cxx
+5
-0
Name.hxx
src/thread/Name.hxx
+14
-6
No files found.
NEWS
View file @
674d1487
...
...
@@ -22,11 +22,13 @@ ver 0.20 (not yet released)
ver 0.19.8 (not yet released)
* input
- curl: fix bug after rewinding from end-of-file
- mms: reduce delay at the beginning of playback
* decoder
- dsdiff, dsf: allow ID3 tags larger than 4 kB
- ffmpeg: support interleaved floating point
* fix clang 3.6 warnings
* fix build failure on NetBSD
ver 0.19.7 (2014/12/17)
* input
...
...
src/input/AsyncInputStream.cxx
View file @
674d1487
...
...
@@ -160,6 +160,11 @@ AsyncInputStream::SeekDone()
assert
(
io_thread_inside
());
assert
(
IsSeekPending
());
/* we may have reached end-of-file previously, and the
connection may have been closed already; however after
seeking successfully, the connection must be alive again */
open
=
true
;
seek_state
=
SeekState
::
NONE
;
cond
.
broadcast
();
}
...
...
src/thread/Name.hxx
View file @
674d1487
...
...
@@ -20,17 +20,25 @@
#ifndef MPD_THREAD_NAME_HXX
#define MPD_THREAD_NAME_HXX
#ifdef HAVE_PTHREAD_SETNAME_NP
#include <pthread.h>
#include <stdio.h>
#if defined(HAVE_PTHREAD_SETNAME_NP) && !defined(__NetBSD__)
# define HAVE_THREAD_NAME
# include <pthread.h>
# include <stdio.h>
#elif defined(HAVE_PRCTL)
#include <sys/prctl.h>
# include <sys/prctl.h>
# ifdef PR_SET_NAME
# define HAVE_THREAD_NAME
# endif
#endif
static
inline
void
SetThreadName
(
const
char
*
name
)
{
#ifdef HAVE_PTHREAD_SETNAME_NP
#if defined(HAVE_PTHREAD_SETNAME_NP) && !defined(__NetBSD__)
/* not using pthread_setname_np() on NetBSD because it
requires a non-const pointer argument, which we don't have
here */
#ifdef __APPLE__
pthread_setname_np
(
name
);
#else
...
...
@@ -47,7 +55,7 @@ template<typename... Args>
static
inline
void
FormatThreadName
(
const
char
*
fmt
,
gcc_unused
Args
&&
...
args
)
{
#ifdef HAVE_
PTHREAD_SETNAME_NP
#ifdef HAVE_
THREAD_NAME
char
buffer
[
16
];
snprintf
(
buffer
,
sizeof
(
buffer
),
fmt
,
args
...);
SetThreadName
(
buffer
);
...
...
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