mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-09 13:29:59 -05:00
Add stubs when RT signals aren't available.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1927 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
8dcc1fa616
commit
ce74146a81
1 changed files with 20 additions and 0 deletions
|
|
@ -36,6 +36,8 @@
|
||||||
|
|
||||||
#include "rtsig.h"
|
#include "rtsig.h"
|
||||||
|
|
||||||
|
#ifdef SIGRTMIN
|
||||||
|
|
||||||
static void _free_rtsig(void *p) {
|
static void _free_rtsig(void *p) {
|
||||||
pa_rtsig_put(PA_PTR_TO_INT(p));
|
pa_rtsig_put(PA_PTR_TO_INT(p));
|
||||||
}
|
}
|
||||||
|
|
@ -111,3 +113,21 @@ void pa_rtsig_configure(int start, int end) {
|
||||||
/* We allocate starting from the end */
|
/* We allocate starting from the end */
|
||||||
pa_atomic_store(&rtsig_current, rtsig_end);
|
pa_atomic_store(&rtsig_current, rtsig_end);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#else /* SIGRTMIN */
|
||||||
|
|
||||||
|
int pa_rtsig_get(void) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
int pa_rtsig_get_for_thread(void) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
void pa_rtsig_put(int sig) {
|
||||||
|
}
|
||||||
|
|
||||||
|
void pa_rtsig_configure(int start, int end) {
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif /* SIGRTMIN */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue