mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-13 13:29:58 -05:00
make eolspace
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1470 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
00da37f2c4
commit
a4fed0fbb5
22 changed files with 215 additions and 215 deletions
|
|
@ -48,11 +48,11 @@ static void the_thread(void *_q) {
|
|||
|
||||
do {
|
||||
int code = 0;
|
||||
|
||||
|
||||
pa_assert_se(pa_asyncmsgq_get(q, NULL, &code, NULL, 1) == 0);
|
||||
|
||||
switch (code) {
|
||||
|
||||
|
||||
case OPERATION_A:
|
||||
printf("Operation A\n");
|
||||
break;
|
||||
|
|
@ -64,7 +64,7 @@ static void the_thread(void *_q) {
|
|||
case OPERATION_C:
|
||||
printf("Operation C\n");
|
||||
break;
|
||||
|
||||
|
||||
case QUIT:
|
||||
printf("quit\n");
|
||||
quit = 1;
|
||||
|
|
@ -79,7 +79,7 @@ static void the_thread(void *_q) {
|
|||
int main(int argc, char *argv[]) {
|
||||
pa_asyncmsgq *q;
|
||||
pa_thread *t;
|
||||
|
||||
|
||||
pa_assert_se(q = pa_asyncmsgq_new(0));
|
||||
|
||||
pa_assert_se(t = pa_thread_new(the_thread, q));
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
static void producer(void *_q) {
|
||||
pa_asyncq *q = _q;
|
||||
int i;
|
||||
|
||||
|
||||
for (i = 0; i < 1000; i++) {
|
||||
pa_asyncq_push(q, (void*) (i+1), 1);
|
||||
printf("pushed %i\n", i);
|
||||
|
|
@ -54,7 +54,7 @@ static void consumer(void *_q) {
|
|||
int i;
|
||||
|
||||
sleep(1);
|
||||
|
||||
|
||||
for (i = 0;; i++) {
|
||||
p = pa_asyncq_pop(q, 1);
|
||||
|
||||
|
|
@ -62,7 +62,7 @@ static void consumer(void *_q) {
|
|||
break;
|
||||
|
||||
pa_assert(p == (void *) (i+1));
|
||||
|
||||
|
||||
printf("popped %i\n", i);
|
||||
}
|
||||
|
||||
|
|
@ -72,7 +72,7 @@ static void consumer(void *_q) {
|
|||
int main(int argc, char *argv[]) {
|
||||
pa_asyncq *q;
|
||||
pa_thread *t1, *t2;
|
||||
|
||||
|
||||
pa_assert_se(q = pa_asyncq_new(0));
|
||||
|
||||
pa_assert_se(t1 = pa_thread_new(producer, q));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue