[pulseaudio-commits] r2386 - /branches/glitch-free/src/pulsecore/asyncq.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Wed May 7 14:09:51 PDT 2008
Author: lennart
Date: Wed May 7 23:09:49 2008
New Revision: 2386
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2386&root=pulseaudio&view=rev
Log:
double default asyncq size
Modified:
branches/glitch-free/src/pulsecore/asyncq.c
Modified: branches/glitch-free/src/pulsecore/asyncq.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/glitch-free/src/pulsecore/asyncq.c?rev=2386&root=pulseaudio&r1=2385&r2=2386&view=diff
==============================================================================
--- branches/glitch-free/src/pulsecore/asyncq.c (original)
+++ branches/glitch-free/src/pulsecore/asyncq.c Wed May 7 23:09:49 2008
@@ -40,7 +40,7 @@
#include "asyncq.h"
#include "fdsem.h"
-#define ASYNCQ_SIZE 128
+#define ASYNCQ_SIZE 256
/* For debugging purposes we can define _Y to put and extra thread
* yield between each operation. */
@@ -73,10 +73,6 @@
#define PA_ASYNCQ_CELLS(x) ((pa_atomic_ptr_t*) ((uint8_t*) (x) + PA_ALIGN(sizeof(struct pa_asyncq))))
-static int is_power_of_two(unsigned size) {
- return !(size & (size - 1));
-}
-
static int reduce(pa_asyncq *l, int value) {
return value & (unsigned) (l->size - 1);
}
@@ -87,7 +83,7 @@
if (!size)
size = ASYNCQ_SIZE;
- pa_assert(is_power_of_two(size));
+ pa_assert(pa_is_power_of_two(size));
l = pa_xmalloc0(PA_ALIGN(sizeof(pa_asyncq)) + (sizeof(pa_atomic_ptr_t) * size));
More information about the pulseaudio-commits
mailing list