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
9b7f492c
Commit
9b7f492c
authored
Feb 18, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
thread/Posix{Mutex,Cond}: disable "constexpr" on Android
Bionic's pthread declarations are non-literal.
parent
6eda79d0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
notify.hxx
src/notify.hxx
+1
-1
PosixCond.hxx
src/thread/PosixCond.hxx
+4
-1
PosixMutex.hxx
src/thread/PosixMutex.hxx
+4
-1
No files found.
src/notify.hxx
View file @
9b7f492c
...
...
@@ -28,7 +28,7 @@ struct notify {
Cond
cond
;
bool
pending
;
#if
ndef WIN32
#if
!defined(WIN32) && !defined(__BIONIC__)
constexpr
#endif
notify
()
:
pending
(
false
)
{}
...
...
src/thread/PosixCond.hxx
View file @
9b7f492c
...
...
@@ -41,7 +41,10 @@ class PosixCond {
pthread_cond_t
cond
;
public
:
constexpr
PosixCond
()
:
cond
(
PTHREAD_COND_INITIALIZER
)
{}
#ifndef __BIONIC__
constexpr
#endif
PosixCond
()
:
cond
(
PTHREAD_COND_INITIALIZER
)
{}
PosixCond
(
const
PosixCond
&
other
)
=
delete
;
PosixCond
&
operator
=
(
const
PosixCond
&
other
)
=
delete
;
...
...
src/thread/PosixMutex.hxx
View file @
9b7f492c
...
...
@@ -41,7 +41,10 @@ class PosixMutex {
pthread_mutex_t
mutex
;
public
:
constexpr
PosixMutex
()
:
mutex
(
PTHREAD_MUTEX_INITIALIZER
)
{}
#ifndef __BIONIC__
constexpr
#endif
PosixMutex
()
:
mutex
(
PTHREAD_MUTEX_INITIALIZER
)
{}
PosixMutex
(
const
PosixMutex
&
other
)
=
delete
;
PosixMutex
&
operator
=
(
const
PosixMutex
&
other
)
=
delete
;
...
...
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