[pulseaudio-commits] r1274 - in /trunk/src/pulsecore: memblock.c memblock.h
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Fri Aug 18 16:40:49 PDT 2006
Author: lennart
Date: Sat Aug 19 01:40:48 2006
New Revision: 1274
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1274&root=pulseaudio&view=rev
Log:
add new function pa_mempool_is_shared() to test whether a memory pool is suitable for SHM data transfers
Modified:
trunk/src/pulsecore/memblock.c
trunk/src/pulsecore/memblock.h
Modified: trunk/src/pulsecore/memblock.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/memblock.c?rev=1274&root=pulseaudio&r1=1273&r2=1274&view=diff
==============================================================================
--- trunk/src/pulsecore/memblock.c (original)
+++ trunk/src/pulsecore/memblock.c Sat Aug 19 01:40:48 2006
@@ -497,6 +497,12 @@
return 0;
}
+int pa_mempool_is_shared(pa_mempool *p) {
+ assert(p);
+
+ return !!p->memory.shared;
+}
+
/* For recieving blocks from other nodes */
pa_memimport* pa_memimport_new(pa_mempool *p, pa_memimport_release_cb_t cb, void *userdata) {
pa_memimport *i;
Modified: trunk/src/pulsecore/memblock.h
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/memblock.h?rev=1274&root=pulseaudio&r1=1273&r2=1274&view=diff
==============================================================================
--- trunk/src/pulsecore/memblock.h (original)
+++ trunk/src/pulsecore/memblock.h Sat Aug 19 01:40:48 2006
@@ -116,6 +116,7 @@
const pa_mempool_stat* pa_mempool_get_stat(pa_mempool *p);
void pa_mempool_vacuum(pa_mempool *p);
int pa_mempool_get_shm_id(pa_mempool *p, uint32_t *id);
+int pa_mempool_is_shared(pa_mempool *p);
/* For recieving blocks from other nodes */
pa_memimport* pa_memimport_new(pa_mempool *p, pa_memimport_release_cb_t cb, void *userdata);
More information about the pulseaudio-commits
mailing list