mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
a bit of pa_bool_t'ization
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2314 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
b12b8ee160
commit
06a05bc66c
1 changed files with 3 additions and 3 deletions
|
|
@ -82,7 +82,7 @@ static pa_io_event *io_event = NULL;
|
||||||
static struct sigaction sigaction_prev;
|
static struct sigaction sigaction_prev;
|
||||||
|
|
||||||
/* Nonzero after pa_cpu_limit_init() */
|
/* Nonzero after pa_cpu_limit_init() */
|
||||||
static int installed = 0;
|
static pa_bool_t installed = FALSE;
|
||||||
|
|
||||||
/* The current state of operation */
|
/* The current state of operation */
|
||||||
static enum {
|
static enum {
|
||||||
|
|
@ -210,7 +210,7 @@ int pa_cpu_limit_init(pa_mainloop_api *m) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
installed = 1;
|
installed = TRUE;
|
||||||
|
|
||||||
reset_cpu_time(CPUTIME_INTERVAL_SOFT);
|
reset_cpu_time(CPUTIME_INTERVAL_SOFT);
|
||||||
|
|
||||||
|
|
@ -231,7 +231,7 @@ void pa_cpu_limit_done(void) {
|
||||||
|
|
||||||
if (installed) {
|
if (installed) {
|
||||||
pa_assert_se(sigaction(SIGXCPU, &sigaction_prev, NULL) >= 0);
|
pa_assert_se(sigaction(SIGXCPU, &sigaction_prev, NULL) >= 0);
|
||||||
installed = 0;
|
installed = FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue